Skip to content

Commit bdfb930

Browse files
committed
treemap: make map_next and set_next public
1 parent 1694168 commit bdfb930

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/treemap.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl <K: Ord, V> TreeMapIterator<K, V> {
218218

219219
/// Advance the iterator to the next node (in order). If this iterator
220220
/// is finished, does nothing.
221-
fn map_next<K: Ord, V>(iter: &mut TreeMapIterator/&a<K, V>) {
221+
pub fn map_next<K: Ord, V>(iter: &mut TreeMapIterator/&a<K, V>) {
222222
while !iter.stack.is_empty() || iter.node.is_some() {
223223
match *iter.node {
224224
Some(ref x) => {
@@ -530,7 +530,7 @@ impl <T: Ord> TreeSetIterator<T> {
530530

531531
/// Advance the iterator to the next node (in order). If this iterator is
532532
/// finished, does nothing.
533-
fn set_next<T: Ord>(iter: &mut TreeSetIterator/&a<T>) {
533+
pub fn set_next<T: Ord>(iter: &mut TreeSetIterator/&a<T>) {
534534
map_next(&mut iter.iter);
535535
}
536536

0 commit comments

Comments
 (0)