How to increment counter? #662
Answered
by
GuillaumeGomez
blueowlgreenfish
asked this question in
Q&A
-
|
I would like to increment a counter inside for loop, but it doesn't work. This doesn't work. |
Beta Was this translation helpful? Give feedback.
Answered by
GuillaumeGomez
Jan 13, 2026
Replies: 1 comment
-
|
You can't. Use a function for that which would expect a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
blueowlgreenfish
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't. Use a function for that which would expect a
&mut usizeargument to increment it.