about summary refs log tree commit diff
path: root/src/libstd/trie.rs
diff options
context:
space:
mode:
authorSean Chalmers <sclhiannan@gmail.com>2014-01-20 11:23:23 +0100
committerSean Chalmers <sclhiannan@gmail.com>2014-01-23 21:50:18 +0100
commit55d6e0e1b71186a0c246101059047c11f5274505 (patch)
tree14ab84f568a978af47a3434e236982978e469633 /src/libstd/trie.rs
parent657e3530225410d167d7f1ee827f15bc69cd965e (diff)
downloadrust-55d6e0e1b71186a0c246101059047c11f5274505.tar.gz
rust-55d6e0e1b71186a0c246101059047c11f5274505.zip
Rename Invert to Flip - Issue 10632
Renamed the invert() function in iter.rs to flip().

Also renamed the Invert<T> type to Flip<T>.

Some related code comments changed. Documentation that I could find has
been updated, and all the instances I could locate where the
function/type were called have been updated as well.
Diffstat (limited to 'src/libstd/trie.rs')
-rw-r--r--src/libstd/trie.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/trie.rs b/src/libstd/trie.rs
index ead9cec9943..0e8974ea0e7 100644
--- a/src/libstd/trie.rs
+++ b/src/libstd/trie.rs
@@ -728,7 +728,7 @@ mod test_map {
     fn test_each_reverse_break() {
         let mut m = TrieMap::new();
 
-        for x in range(uint::max_value - 10000, uint::max_value).invert() {
+        for x in range(uint::max_value - 10000, uint::max_value).flip() {
             m.insert(x, x / 2);
         }
 
@@ -781,7 +781,7 @@ mod test_map {
         let last = uint::max_value;
 
         let mut map = TrieMap::new();
-        for x in range(first, last).invert() {
+        for x in range(first, last).flip() {
             map.insert(x, x / 2);
         }
 
@@ -803,7 +803,7 @@ mod test_map {
         let last = uint::max_value;
 
         let mut map = TrieMap::new();
-        for x in range(first, last).invert() {
+        for x in range(first, last).flip() {
             map.insert(x, x / 2);
         }