Skip to content

Commit

Permalink
Fix to 80 char width, change to single space after period
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisdairO committed Jul 18, 2015
1 parent f78333e commit 91f0301
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/librustc_typeck/diagnostics.rs
Expand Up @@ -2139,9 +2139,9 @@ enum Foo<T> {
}
```
This error may also commonly be found when working with unsafe code. For
This error may also commonly be found when working with unsafe code. For
example, when using raw pointers one may wish to specify the lifetime for
which the pointed-at data is valid. An initial attempt (below) causes this
which the pointed-at data is valid. An initial attempt (below) causes this
error:
```
Expand All @@ -2151,8 +2151,8 @@ struct Foo<'a, T> {
```
We want to express the constraint that Foo should not outlive `'a`, because
the data pointed to by `T` is only valid for that lifetime. The problem is
that there are no actual uses of `'a`. It's possible to work around this
the data pointed to by `T` is only valid for that lifetime. The problem is
that there are no actual uses of `'a`. It's possible to work around this
by adding a PhantomData type to the struct, using it to tell the compiler
to act as if the struct contained a borrowed reference `&'a T`:
Expand All @@ -2165,8 +2165,8 @@ struct Foo<'a, T: 'a> {
}
```
PhantomData can also be used to express information about unused type parameters.
You can read more about it in the API documentation:
PhantomData can also be used to express information about unused type
parameters. You can read more about it in the API documentation:
https://doc.rust-lang.org/std/marker/struct.PhantomData.html
"##
Expand Down

0 comments on commit 91f0301

Please sign in to comment.