Make CString.iter() public

This commit is contained in:
Kevin Ballard 2013-08-14 19:31:13 -07:00
parent 03ef71e262
commit f744cf157e

View File

@ -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) },