]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/marker.rs
removed weird example
[rust.git] / src / libcore / marker.rs
index 299cdbda3cc7481a3087d625cb807fb0eef4e212..ab64d09f9d43f1a768117e89e6d63b9757057178 100644 (file)
@@ -308,19 +308,6 @@ fn clone(&self) -> ContravariantType<T> { *self }
 ///
 /// 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"]