Skip to content

Commit

Permalink
chore(docs): add missing pub to return value of main function
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Nov 30, 2023
1 parent 52488eb commit a049045
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/docs/language_concepts/07_mutability.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Note that mutability in noir is local and everything is passed by value, so if a
mutates its parameters then the parent function will keep the old value of the parameters.

```rust
fn main() -> Field {
fn main() -> pub Field {
let x = 3;
helper(x);
x // x is still 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Note that mutability in noir is local and everything is passed by value, so if a
mutates its parameters then the parent function will keep the old value of the parameters.

```rust
fn main() -> Field {
fn main() -> pub Field {
let x = 3;
helper(x);
x // x is still 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Note that mutability in noir is local and everything is passed by value, so if a
mutates its parameters then the parent function will keep the old value of the parameters.

```rust
fn main() -> Field {
fn main() -> pub Field {
let x = 3;
helper(x);
x // x is still 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Note that mutability in noir is local and everything is passed by value, so if a
mutates its parameters then the parent function will keep the old value of the parameters.

```rust
fn main() -> Field {
fn main() -> pub Field {
let x = 3;
helper(x);
x // x is still 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Note that mutability in noir is local and everything is passed by value, so if a
mutates its parameters then the parent function will keep the old value of the parameters.

```rust
fn main() -> Field {
fn main() -> pub Field {
let x = 3;
helper(x);
x // x is still 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Note that mutability in noir is local and everything is passed by value, so if a
mutates its parameters then the parent function will keep the old value of the parameters.

```rust
fn main() -> Field {
fn main() -> pub Field {
let x = 3;
helper(x);
x // x is still 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Note that mutability in noir is local and everything is passed by value, so if a
mutates its parameters then the parent function will keep the old value of the parameters.

```rust
fn main() -> Field {
fn main() -> pub Field {
let x = 3;
helper(x);
x // x is still 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Note that mutability in noir is local and everything is passed by value, so if a
mutates its parameters then the parent function will keep the old value of the parameters.

```rust
fn main() -> Field {
fn main() -> pub Field {
let x = 3;
helper(x);
x // x is still 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Note that mutability in noir is local and everything is passed by value, so if a
mutates its parameters then the parent function will keep the old value of the parameters.

```rust
fn main() -> Field {
fn main() -> pub Field {
let x = 3;
helper(x);
x // x is still 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Note that mutability in noir is local and everything is passed by value, so if a
mutates its parameters then the parent function will keep the old value of the parameters.

```rust
fn main() -> Field {
fn main() -> pub Field {
let x = 3;
helper(x);
x // x is still 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Note that mutability in noir is local and everything is passed by value, so if a
mutates its parameters then the parent function will keep the old value of the parameters.

```rust
fn main() -> Field {
fn main() -> pub Field {
let x = 3;
helper(x);
x // x is still 3
Expand Down

0 comments on commit a049045

Please sign in to comment.