@@ -48,7 +48,7 @@ use ptr::RawPtr;
48
48
use mem;
49
49
use mem:: size_of;
50
50
use kinds:: marker;
51
- use raw:: { Repr } ;
51
+ use raw:: Repr ;
52
52
// Avoid conflicts with *both* the Slice trait (buggy) and the `slice::raw` module.
53
53
use RawSlice = raw :: Slice ;
54
54
@@ -227,19 +227,17 @@ pub trait ImmutableSlice<'a, T> {
227
227
#[ deprecated = "use binary_search" ]
228
228
fn bsearch ( & self , f: |& T | -> Ordering ) -> Option < uint > ;
229
229
230
- /**
231
- * Binary search a sorted vector with a comparator function.
232
- *
233
- * The comparator function should implement an order consistent
234
- * with the sort order of the underlying vector, returning an
235
- * order code that indicates whether its argument is `Less`,
236
- * `Equal` or `Greater` the desired target.
237
- *
238
- * If the value is found then `Found` is returned, containing the
239
- * index of the matching element; if the value is not found then
240
- * `NotFound` is returned, containing the index where a matching
241
- * element could be inserted while maintaining sorted order.
242
- */
230
+ /// Binary search a sorted vector with a comparator function.
231
+ ///
232
+ /// The comparator function should implement an order consistent
233
+ /// with the sort order of the underlying vector, returning an
234
+ /// order code that indicates whether its argument is `Less`,
235
+ /// `Equal` or `Greater` the desired target.
236
+ ///
237
+ /// If the value is found then `Found` is returned, containing the
238
+ /// index of the matching element; if the value is not found then
239
+ /// `NotFound` is returned, containing the index where a matching
240
+ /// element could be inserted while maintaining sorted order.
243
241
#[ unstable]
244
242
fn binary_search ( & self , f: |& T | -> Ordering ) -> BinarySearchResult ;
245
243
0 commit comments