File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 100
100
///
101
101
/// Instead, `get` relies on `Q`’s implementation of `Hash` and uses `Borrow`
102
102
/// to indicate that `K`’s implementation of `Hash` must produce the same
103
- /// result as `Q`’s by demanding that `K: Borrow<Q>`.
103
+ /// result as `Q`’s by demanding that `K: Borrow<Q>`.
104
104
///
105
105
/// As a consequence, the hash map breaks if a `K` wrapping a `Q` value
106
106
/// produces a different hash than `Q`. For instance, image you have a
107
107
/// type that wraps a string but compares ASCII letters case-insensitive:
108
- ///
108
+ ///
109
109
/// ```
110
110
/// use std::ascii::AsciiExt;
111
111
///
148
148
/// [`HashMap`]: ../collections/struct.HashMap.html
149
149
/// [`String`]: ../string/struct.String.html
150
150
/// [`str`]: ../primitive.str.html
151
- ///
151
+ ///
152
152
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
153
153
pub trait Borrow < Borrowed : ?Sized > {
154
154
/// Immutably borrows from an owned value.
You can’t perform that action at this time.
0 commit comments