Skip to content

Commit

Permalink
Add missing "mut" keyword to the documentation
Browse files Browse the repository at this point in the history
Changelog: other
  • Loading branch information
apahl authored and yorickpeterse committed Dec 19, 2023
1 parent af7fd91 commit a31bd3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/getting-started/variables.md
Expand Up @@ -69,7 +69,7 @@ This also works for fields:
class Person {
let @name: String
fn replace_name(new_name: String) -> String {
fn mut replace_name(new_name: String) -> String {
@name := new_name
}
}
Expand Down

0 comments on commit a31bd3f

Please sign in to comment.