Skip to content

Commit 0b04b17

Browse files
committed
Make description of Borrow trait uses match the example.
1 parent b948d81 commit 0b04b17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/trpl/borrow-and-asref.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ This is because the standard library has `impl Borrow<str> for String`.
4747

4848
For most types, when you want to take an owned or borrowed type, a `&T` is
4949
enough. But one area where `Borrow` is effective is when there’s more than one
50-
kind of borrowed value. Slices are an area where this is especially true: you
51-
can have both an `&[T]` or a `&mut [T]`. If we wanted to accept both of these
52-
types, `Borrow` is up for it:
50+
kind of borrowed value. This is especially true of references and slices: you
51+
can have both an `&T` or a `&mut T`. If we wanted to accept both of these types,
52+
`Borrow` is up for it:
5353

5454
```
5555
use std::borrow::Borrow;

0 commit comments

Comments
 (0)