about summary refs log tree commit diff
path: root/src/libcore/to_bytes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/to_bytes.rs')
-rw-r--r--src/libcore/to_bytes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/to_bytes.rs b/src/libcore/to_bytes.rs
index f379878c8eb..32b123979cd 100644
--- a/src/libcore/to_bytes.rs
+++ b/src/libcore/to_bytes.rs
@@ -19,7 +19,7 @@ use io::Writer;
 use option::{None, Option, Some};
 use str;
 
-pub type Cb = &'self fn(buf: &[const u8]) -> bool;
+pub type Cb = &'self fn(buf: &const [u8]) -> bool;
 
 /**
  * A trait to implement in order to make a type hashable;