Minor docs fix

Remove an rogue 'is' and fix some line wrapping.
This commit is contained in:
Rob Young 2015-05-09 18:31:00 +01:00
parent 67ba6dcf68
commit 978dc9f36a

View File

@ -131,7 +131,9 @@ prints a [string][strings] to the screen.
let mut guess = String::new();
```
Now were getting interesting! Theres 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:
Now were getting interesting! Theres 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:
```rust,ignore
let foo = bar;
@ -171,7 +173,7 @@ bound to: `String::new()`.
[string]: ../std/string/struct.String.html
The `::new()` syntax is uses `::` because this is an associated function of
The `::new()` syntax uses `::` because this is an associated function of
a particular type. That is to say, its associated with `String` itself,
rather than a particular instance of a `String`. Some languages call this a
static method.