nomicon: Fix variance in example
&'b mut B was described incorrectly (just in this example, is correct in the actual text).
This commit is contained in:
parent
64c21f9ee2
commit
a0101624ad
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ use std::cell::Cell;
|
|||
|
||||
struct Foo<'a, 'b, A: 'a, B: 'b, C, D, E, F, G, H> {
|
||||
a: &'a A, // variant over 'a and A
|
||||
b: &'b mut B, // invariant over 'b and B
|
||||
b: &'b mut B, // variant over 'b and invariant over B
|
||||
c: *const C, // variant over C
|
||||
d: *mut D, // invariant over D
|
||||
e: Vec<E>, // variant over E
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue