]> git.lizzy.rs Git - rust.git/commitdiff
removed weird example
authorJunseok Lee <lee.junseok@berkeley.edu>
Sun, 1 Feb 2015 02:21:57 +0000 (18:21 -0800)
committerJunseok Lee <lee.junseok@berkeley.edu>
Fri, 6 Feb 2015 07:50:51 +0000 (23:50 -0800)
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"]