diff --git a/src/libstd/c_str.rs b/src/libstd/c_str.rs index e60e9ca8a74..6fc14439abb 100644 --- a/src/libstd/c_str.rs +++ b/src/libstd/c_str.rs @@ -104,7 +104,7 @@ impl CString { } /// Return a CString iterator. - fn iter<'a>(&'a self) -> CStringIterator<'a> { + pub fn iter<'a>(&'a self) -> CStringIterator<'a> { CStringIterator { ptr: self.buf, lifetime: unsafe { cast::transmute(self.buf) },