Skip to content

Commit f744cf1

Browse files
committed
Make CString.iter() public
1 parent 03ef71e commit f744cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/c_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl CString {
104104
}
105105

106106
/// Return a CString iterator.
107-
fn iter<'a>(&'a self) -> CStringIterator<'a> {
107+
pub fn iter<'a>(&'a self) -> CStringIterator<'a> {
108108
CStringIterator {
109109
ptr: self.buf,
110110
lifetime: unsafe { cast::transmute(self.buf) },

0 commit comments

Comments
 (0)