@@ -855,7 +855,7 @@ trait Predicate<T> {
855
855
856
856
impl <T : Eq > Predicate <T > for & T {
857
857
fn check (& self , t : & T ) -> bool {
858
- self == t
858
+ * self == t
859
859
}
860
860
}
861
861
@@ -1169,19 +1169,19 @@ functions to work with the capacity later on:
1169
1169
```rust
1170
1170
fn with_capacity (uint ) -> Self
1171
1171
fn capacity (& self ) -> uint
1172
- fn reserve (& mut self , uint )
1173
- fn reserve_exact (& mut self , uint )
1172
+ fn reserve (& mut self , additional : uint )
1173
+ fn reserve_exact (& mut self , additional : uint )
1174
1174
fn shrink_to_fit (& mut self )
1175
1175
```
1176
1176
1177
1177
There are some important changes from the current APIs :
1178
1178
1179
1179
* The `reserve ` and `reserve_exact ` methods now take as an argument the * extra *
1180
1180
space to reserve , rather than the final desired capacity , as this usage is
1181
- vastly more common . The `reserve ` function will generally grow the capacity in
1182
- powers of two ( as needed for amortization ) , while `reserve_exact ` will reserve
1183
- exactly the requested additional capacity . The `reserve_additional ` methods
1184
- are deprecated .
1181
+ vastly more common . The `reserve ` function may grow the capacity by a larger
1182
+ amount than requested , to ensure amortization , while `reserve_exact ` will
1183
+ reserve exactly the requested additional capacity . The `reserve_additional `
1184
+ methods are deprecated .
1185
1185
1186
1186
* The `with_capacity ` constructor does * not * take any additional arguments , for
1187
1187
uniformity with `new `. This change affects `Bitv ` in particular .
@@ -1199,7 +1199,7 @@ renaming:
1199
1199
fn iter_from (& self , k : & K ) -> Entries <'a , K , V >
1200
1200
fn iter_from_mut (& mut self , k : & K ) -> EntriesMut <'a , K , V >
1201
1201
1202
- Returns an iterator starting with the first key - value pair whose key is greater than k .
1202
+ // Returns an iterator starting with the first key-value pair whose key is greater than k.
1203
1203
fn iter_above (& self , k : & K ) -> Entries <'a , K , V >
1204
1204
fn iter_above_mut (& mut self , k : & K ) -> EntriesMut <'a , K , V >
1205
1205
```
0 commit comments