From f744cf157ef7c85736796eca937aa43cbd681a0a Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Wed, 14 Aug 2013 19:31:13 -0700 Subject: [PATCH] Make CString.iter() public --- src/libstd/c_str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) },