You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/trpl/guessing-game.md
+4-2
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,9 @@ prints a [string][strings] to the screen.
131
131
let mut guess = String::new();
132
132
```
133
133
134
-
Now we’re getting interesting! There’s a lot going on in this little line. The first thing to notice is that this is a [let statement][let], which is used to create ‘variable bindings’. They take this form:
134
+
Now we’re getting interesting! There’s a lot going on in this little line.
135
+
The first thing to notice is that this is a [let statement][let], which is
136
+
used to create ‘variable bindings’. They take this form:
135
137
136
138
```rust,ignore
137
139
let foo = bar;
@@ -171,7 +173,7 @@ bound to: `String::new()`.
171
173
172
174
[string]: ../std/string/struct.String.html
173
175
174
-
The `::new()` syntax is uses `::` because this is an ‘associated function’ of
176
+
The `::new()` syntax uses `::` because this is an ‘associated function’ of
175
177
a particular type. That is to say, it’s associated with `String` itself,
176
178
rather than a particular instance of a `String`. Some languages call this a
0 commit comments