Skip to content

Commit

Permalink
Update basics.mdx
Browse files Browse the repository at this point in the history
var in fn is also optional

Signed-off-by: Bernhard Merkle <[email protected]>
  • Loading branch information
bmerkle authored Jan 24, 2025
1 parent c6d25dc commit e368d95
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/manual/basics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ answer, see the section about [value ownership](/mojo/manual/values/).

## Variables

You can declare variables with the `var` keyword. Or, if your code is in a
`def` function, you can omit the `var` (in an `fn` function, you must include
the `var` keyword).
You can declare variables with the `var` keyword.

For example:

Expand Down

0 comments on commit e368d95

Please sign in to comment.