diff --git a/src/libstd/iterator.rs b/src/libstd/iterator.rs
index 944b568db3f7df5f9a75d58665239316b58dd41b..811adb53cb40fc02ceef3993d47c4bdf403cee44 100644
--- a/src/libstd/iterator.rs
+++ b/src/libstd/iterator.rs
@@ -381,9 +381,8 @@ fn nth(&mut self, mut n: uint) -> Option {
/// let a = [1, 2, 3, 4, 5];
/// assert!(a.iter().last().get() == &5);
/// ~~~
- // FIXME: #5898: should be called `last`
#[inline]
- fn last_(&mut self) -> Option {
+ fn last(&mut self) -> Option {
let mut last = None;
for x in *self { last = Some(x); }
last
@@ -1712,8 +1711,8 @@ fn test_iterator_nth() {
#[test]
fn test_iterator_last() {
let v = &[0, 1, 2, 3, 4];
- assert_eq!(v.iter().last_().unwrap(), &4);
- assert_eq!(v.slice(0, 1).iter().last_().unwrap(), &0);
+ assert_eq!(v.iter().last().unwrap(), &4);
+ assert_eq!(v.slice(0, 1).iter().last().unwrap(), &0);
}
#[test]