diff options
Diffstat (limited to 'src/libcore/ops.rs')
| -rw-r--r-- | src/libcore/ops.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 422c496995b..77cee2b9863 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -684,7 +684,7 @@ pub trait IndexMut<Index, Result> { * A trivial implementation of `Slice`. When `Foo[..Foo]` happens, it ends up * calling `slice_to`, and therefore, `main` prints `Slicing!`. * - * ```ignore + * ``` * struct Foo; * * impl ::core::ops::Slice<Foo, Foo> for Foo { @@ -749,7 +749,7 @@ pub trait Slice<Idx, Sized? Result> for Sized? { * A trivial implementation of `SliceMut`. When `Foo[Foo..]` happens, it ends up * calling `slice_from_mut`, and therefore, `main` prints `Slicing!`. * - * ```ignore + * ``` * struct Foo; * * impl ::core::ops::SliceMut<Foo, Foo> for Foo { @@ -771,7 +771,7 @@ pub trait Slice<Idx, Sized? Result> for Sized? { * } * } * - * pub fn main() { + * fn main() { * Foo[mut Foo..]; * } * ``` |
