Fix some typos in Nomicon

pull/10/head
Ben Wiederhake 8 years ago committed by Manish Goregaokar
parent 216456d702
commit e8afb6db19

@ -125,7 +125,7 @@ is that some Drop implementations will not access borrowed data even
though their type gives them the capability for such access.
For example, this variant of the above `Inspector` example will never
accessed borrowed data:
access borrowed data:
```rust,ignore
struct Inspector<'a>(&'a u8, &'static str);

@ -11,7 +11,7 @@ lifetime can be regarded as `'static`.
Almost no reference is `'static`, so this is probably wrong. `transmute` and
`transmute_copy` are the two other primary offenders. One should endeavor to
bound an unbounded lifetime as quick as possible, especially across function
bound an unbounded lifetime as quickly as possible, especially across function
boundaries.
Given a function, any output lifetimes that don't derive from inputs are

Loading…
Cancel
Save