about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSon <leson.phung@gmail.com>2014-10-14 09:20:11 +0800
committerSon <leson.phung@gmail.com>2014-10-14 09:20:11 +0800
commit62b48bd8150f22ee6d3275cfa719a808af297414 (patch)
tree388754766fb5eb381b5b728fc742b85adf4bf014
parent8f717ffe60af1911943c7e9483d26bd4b9b73637 (diff)
downloadrust-62b48bd8150f22ee6d3275cfa719a808af297414.tar.gz
rust-62b48bd8150f22ee6d3275cfa719a808af297414.zip
Remove unnecessary ::core::ops::
It shows error: failed to resolve. Maybe a missing `extern crate core`
anyway.
-rw-r--r--src/libcore/ops.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs
index 30281e36321..f58f2cf042e 100644
--- a/src/libcore/ops.rs
+++ b/src/libcore/ops.rs
@@ -687,7 +687,7 @@ pub trait IndexMut<Index, Result> {
  * ```ignore
  * struct Foo;
  *
- * impl ::core::ops::Slice<Foo, Foo> for Foo {
+ * impl Slice<Foo, Foo> for Foo {
  *     fn as_slice_<'a>(&'a self) -> &'a Foo {
  *         println!("Slicing!");
  *         self
@@ -736,7 +736,7 @@ pub trait Slice<Idx, Sized? Result> for Sized? {
  * ```ignore
  * struct Foo;
  *
- * impl ::core::ops::SliceMut<Foo, Foo> for Foo {
+ * impl SliceMut<Foo, Foo> for Foo {
  *     fn as_mut_slice_<'a>(&'a mut self) -> &'a mut Foo {
  *         println!("Slicing!");
  *         self