From 3fd8c8b3306ae33bdc85811aa410ba01967922bc Mon Sep 17 00:00:00 2001
From: Palmer Cox
Date: Tue, 14 Jan 2014 22:32:24 -0500
Subject: Rename iterators for consistency
Rename existing iterators to get rid of the Iterator suffix and to
give them names that better describe the things being iterated over.
---
src/libstd/rt/task.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'src/libstd/rt')
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs
index 4df626446c4..5041c4b6165 100644
--- a/src/libstd/rt/task.rs
+++ b/src/libstd/rt/task.rs
@@ -79,7 +79,7 @@ pub struct Death {
on_exit: Option,
}
-pub struct BlockedTaskIterator {
+pub struct BlockedTasks {
priv inner: UnsafeArc,
}
@@ -300,7 +300,7 @@ impl Drop for Task {
}
}
-impl Iterator for BlockedTaskIterator {
+impl Iterator for BlockedTasks {
fn next(&mut self) -> Option {
Some(Shared(self.inner.clone()))
}
@@ -331,7 +331,7 @@ impl BlockedTask {
}
/// Converts one blocked task handle to a list of many handles to the same.
- pub fn make_selectable(self, num_handles: uint) -> Take
+ pub fn make_selectable(self, num_handles: uint) -> Take
{
let arc = match self {
Owned(task) => {
@@ -340,7 +340,7 @@ impl BlockedTask {
}
Shared(arc) => arc.clone(),
};
- BlockedTaskIterator{ inner: arc }.take(num_handles)
+ BlockedTasks{ inner: arc }.take(num_handles)
}
/// Convert to an unsafe uint value. Useful for storing in a pipe's state
--
cgit 1.4.1-3-g733a5