Skip to content

Commit

Permalink
clean up E0195 explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 16, 2020
1 parent bf84eb5 commit a1a0aea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustc_error_codes/error_codes/E0195.md
@@ -1,4 +1,5 @@
Your method's lifetime parameters do not match the trait declaration.
The lifetime parameters of the method do not match the trait declaration.

Erroneous code example:

```compile_fail,E0195
Expand All @@ -16,7 +17,7 @@ impl Trait for Foo {
}
```

The lifetime constraint `'b` for bar() implementation does not match the
The lifetime constraint `'b` for `bar()` implementation does not match the
trait declaration. Ensure lifetime declarations match exactly in both trait
declaration and implementation. Example:

Expand Down

0 comments on commit a1a0aea

Please sign in to comment.