We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e46dc59 commit 74abde7Copy full SHA for 74abde7
content/learn/book/intro/the-next-three-letters.md
@@ -26,7 +26,7 @@ struct Score {
26
They're accessed and updated in systems, similar to entities and components:
27
28
```rs
29
-fn update_score(score: ResMut<Score>) {
+fn update_score(mut score: ResMut<Score>) {
30
// ResMut gets the resource mutably, so we can update it
31
score.points += 1;
32
}
0 commit comments