Skip to content

Commit

Permalink
Gammer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0 committed Dec 30, 2019
1 parent 751fe7c commit b4e1fbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_error_codes/error_codes/E0477.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ fn print_string<'a>(s: Mutex<MyString<'a>>) {
}
```

In this example, the closure doesn't satisfy the `'static` lifetime constraint.
To fix this kind of error, you need to double check lifetime of the type. Here,
we can fix this problem by giving `s` a static lifetime:
In this example, the closure does not satisfy the `'static` lifetime constraint.
To fix this error, you need to double check the lifetime of the type. Here, we
can fix this problem by giving `s` a static lifetime:

```
use std::sync::Mutex;
Expand Down

0 comments on commit b4e1fbc

Please sign in to comment.