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:
Ulrik Sverdrup 2015-12-11 18:15:57 +01:00
parent 64c21f9ee2
commit a0101624ad

View file

@ -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