about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-02-16 22:19:41 +1100
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-02-17 00:57:56 +1100
commitcf0654c47c0d47478cdafec89ae250a86b4f2c17 (patch)
tree07b6f961a89d4835b195797ecb64f9fe344d7f96 /src/libcollections
parent2cd7a290133f2ec7941215539dfc549f778f7be5 (diff)
downloadrust-cf0654c47c0d47478cdafec89ae250a86b4f2c17.tar.gz
rust-cf0654c47c0d47478cdafec89ae250a86b4f2c17.zip
Improve naming of tuple getters, and add mutable tuple getter
Renames the `n*` and `n*_ref` tuple getters to `val*` and `ref*` respectively, and adds `mut*` getters.
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/btree.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcollections/btree.rs b/src/libcollections/btree.rs
index 34aee6459a8..13b39da0756 100644
--- a/src/libcollections/btree.rs
+++ b/src/libcollections/btree.rs
@@ -500,15 +500,15 @@ impl<K: Clone + TotalOrd, V: Clone> Branch<K, V> {
                     let new_outcome = self.clone().rightmost_child.insert(k.clone(),
                                                                        v.clone(),
                                                                        ub.clone());
-                    new_branch = new_outcome.clone().n0();
-                    outcome = new_outcome.n1();
+                    new_branch = new_outcome.clone().val0();
+                    outcome = new_outcome.val1();
                 }
                 else {
                     let new_outcome = self.clone().elts[index.unwrap()].left.insert(k.clone(),
                                                                                  v.clone(),
                                                                                  ub.clone());
-                    new_branch = new_outcome.clone().n0();
-                    outcome = new_outcome.n1();
+                    new_branch = new_outcome.clone().val0();
+                    outcome = new_outcome.val1();
                 }
                 //Check to see whether a branch or a leaf was returned from the
                 //tree traversal.