about summary refs log tree commit diff
path: root/src/doc/nomicon
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2015-12-11 18:15:57 +0100
committerUlrik Sverdrup <bluss@users.noreply.github.com>2015-12-11 18:24:10 +0100
commita0101624ade4e8335837c8f0578a6364dd09d08d (patch)
tree10f6d3cfb560d6a7a654c303919e6b84e43104ca /src/doc/nomicon
parent64c21f9ee2c6a7e6a530d4bb889676c296e1fe68 (diff)
downloadrust-a0101624ade4e8335837c8f0578a6364dd09d08d.tar.gz
rust-a0101624ade4e8335837c8f0578a6364dd09d08d.zip
nomicon: Fix variance in example
&'b mut B was described incorrectly (just in this example, is correct in
the actual text).
Diffstat (limited to 'src/doc/nomicon')
-rw-r--r--src/doc/nomicon/subtyping.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/nomicon/subtyping.md b/src/doc/nomicon/subtyping.md
index 65dcb6a94e1..0253a1fb035 100644
--- a/src/doc/nomicon/subtyping.md
+++ b/src/doc/nomicon/subtyping.md
@@ -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