]> git.lizzy.rs Git - rust.git/commit
dlist: Fix .peek_next() w.r.t double ended iterators
authorblake2-ppc <blake2-ppc>
Mon, 22 Jul 2013 15:51:11 +0000 (17:51 +0200)
committerblake2-ppc <blake2-ppc>
Mon, 22 Jul 2013 15:51:11 +0000 (17:51 +0200)
commit52b4a2eb6f094db7eabcf605598b9266869fa9d6
tree966fc89b57920c5f002c02f8d5b2d90c9057d4a3
parentcf437a273033a16c4084acc07b1341ee86bd5bbd
dlist: Fix .peek_next() w.r.t double ended iterators

.peek_next() needs to check the element counter just like the .next()
and .next_back() iterators do.

Also clarify .insert_next() doc w.r.t double ended iteration.
src/libextra/dlist.rs