Skip to content

Commit

Permalink
make fix (CryptozombiesHQ#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-Patnam authored Mar 3, 2022
1 parent ff934d5 commit bb1dfc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/1/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function eatHamburgers(string memory _name, uint _amount) public {
}
```

This is a function named `eatHamburgers` that takes 2 parameters: a `string` and a `uint`. For now the body of the function is empty. Note that we're specifying the function visibility as `public`. We're also providing instructions about where the `_name` variable should be stored- in `memory`. This is required for all reference types such as arrays, structs, mappings, and strings.
This is a function named `eatHamburgers` that takes 2 parameters: a `string` and a `uint`. For now the body of the function is empty. Note that we're specifying the function visibility as `public`. We're also providing instructions about where the `_name` variable should be stored- in `memory`. This is required for all reference types such as arrays, structs, and mappings.

What is a reference type you ask?

Expand Down

0 comments on commit bb1dfc6

Please sign in to comment.