Skip to content

Commit d94e9c0

Browse files
author
Mark Lacey
committed
Fix two minor issues in the tutorial.
Remove an extraneous 'then', and replace 'second' with 'first'.
1 parent 09bb07b commit d94e9c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ let monster_size: int = 50;
226226
~~~~
227227

228228
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
230230
`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
232232
unused and issue a warning (because this situation is likely to indicate a
233233
programmer error). For occasions where unused variables are intentional, their
234234
name may be prefixed with an underscore to silence the warning, like `let

0 commit comments

Comments
 (0)