From: Junseok Lee Date: Sun, 1 Feb 2015 02:21:57 +0000 (-0800) Subject: removed weird example X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=b6544fd3520d5eed05aafeb6b78737e32bf2c435;p=rust.git removed weird example --- 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 @@ fn clone(&self) -> ContravariantType { *self } /// /// For more information about variance, refer to this Wikipedia /// article . -/// -/// # Example -/// -/// The Cell type is an example which uses unsafe code to achieve -/// "interior" mutability: -/// -/// ``` -/// struct Cell { 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"]