nomicon: Fix variance in example

&'b mut B was described incorrectly (just in this example, is correct in
the actual text).
pull/10/head
Ulrik Sverdrup 9 years ago committed by Manish Goregaokar
parent 31e414c51a
commit 9a11f6e3ff

@ -200,7 +200,7 @@ use std::cell::Cell;
struct Foo<'a, 'b, A: 'a, B: 'b, C, D, E, F, G, H> { struct Foo<'a, 'b, A: 'a, B: 'b, C, D, E, F, G, H> {
a: &'a A, // variant over 'a and A 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 c: *const C, // variant over C
d: *mut D, // invariant over D d: *mut D, // invariant over D
e: Vec<E>, // variant over E e: Vec<E>, // variant over E

Loading…
Cancel
Save