Skip to content

Commit 1f1348e

Browse files
committed
Rollup merge of #25249 - robyoung:minor-doc-fix, r=Manishearth
Remove an rogue 'is' and fix some line wrapping.
2 parents 4f69a32 + 978dc9f commit 1f1348e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/doc/trpl/guessing-game.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ prints a [string][strings] to the screen.
131131
let mut guess = String::new();
132132
```
133133

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:
135137

136138
```rust,ignore
137139
let foo = bar;
@@ -171,7 +173,7 @@ bound to: `String::new()`.
171173

172174
[string]: ../std/string/struct.String.html
173175

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
175177
a particular type. That is to say, it’s associated with `String` itself,
176178
rather than a particular instance of a `String`. Some languages call this a
177179
‘static method’.

0 commit comments

Comments
 (0)