Merge pull request #565 from outkaj/master

Fixes #504 and #506
This commit is contained in:
Carol (Nichols || Goulding)
2017-03-25 09:45:19 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -291,7 +291,7 @@ Because `s` is created inside `dangle`, when the code of `dangle` is finished,
this reference would be pointing to an invalid `String`! Thats no good. Rust
wont let us do this.
The correct code here is to return the `String` directly:
The solution here is to return the `String` directly:
```rust
fn no_dangle() -> String {

View File

@@ -284,7 +284,7 @@ println!("1 new tweet: {}", tweet.summary());
This will print `1 new tweet: (Read more from @horse_ebooks...)`.
Note that it is not possible to call the default implementation from an
overridden implementation.
overriding implementation.
### Trait Bounds