about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorJunseok Lee <lee.junseok@berkeley.edu>2015-01-31 18:21:57 -0800
committerJunseok Lee <lee.junseok@berkeley.edu>2015-02-05 23:50:51 -0800
commitb6544fd3520d5eed05aafeb6b78737e32bf2c435 (patch)
treed2725e5d6fb3a1004a2fd381aa447088986da898 /src/libcore
parent715f9a5e8da73e04bff039dddc58800a5e6a24bd (diff)
downloadrust-b6544fd3520d5eed05aafeb6b78737e32bf2c435.tar.gz
rust-b6544fd3520d5eed05aafeb6b78737e32bf2c435.zip
removed weird example
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/marker.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs
index 299cdbda3cc..ab64d09f9d4 100644
--- a/src/libcore/marker.rs
+++ b/src/libcore/marker.rs
@@ -308,19 +308,6 @@ impl<T: ?Sized> Clone for ContravariantType<T> {
 ///
 /// For more information about variance, refer to this Wikipedia
 /// article <http://en.wikipedia.org/wiki/Variance_%28computer_science%29>.
-///
-/// # Example
-///
-/// The Cell type is an example which uses unsafe code to achieve
-/// "interior" mutability:
-///
-/// ```
-/// struct Cell<T> { value: T }
-/// ```
-///
-/// The type system would infer that `value` is only read here and
-/// never written, but in fact `Cell` uses unsafe code to achieve
-/// interior mutability.
 #[unstable(feature = "core",
            reason = "likely to change with new variance strategy")]
 #[lang="invariant_type"]