File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -226,9 +226,9 @@ let monster_size: int = 50;
226
226
~~~~
227
227
228
228
Local variables may shadow earlier declarations, as in the previous example:
229
- ` monster_size ` was first declared as a ` float ` , and then then a second
229
+ ` monster_size ` was first declared as a ` float ` , and then a second
230
230
` monster_size ` was declared as an int. If you were to actually compile this
231
- example, though, the compiler will determine that the second ` monster_size ` is
231
+ example, though, the compiler will determine that the first ` monster_size ` is
232
232
unused and issue a warning (because this situation is likely to indicate a
233
233
programmer error). For occasions where unused variables are intentional, their
234
234
name may be prefixed with an underscore to silence the warning, like `let
You can’t perform that action at this time.
0 commit comments