about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-05-19 18:47:13 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-05-19 18:47:13 +0530
commitfddd89319ddd76e6da89c4b273ded30d9d89f92a (patch)
tree7daf9b0b369ed4faa0b627e3a614598ccbdbe600
parentb301e02f37127da993dd2cf370aa1066d48b042e (diff)
parent0b04b171838d2ce35b51597ad7166b647d7a8d89 (diff)
downloadrust-fddd89319ddd76e6da89c4b273ded30d9d89f92a.tar.gz
rust-fddd89319ddd76e6da89c4b273ded30d9d89f92a.zip
Rollup merge of #25452 - jimblandy:master, r=steveklabnik
Minor tweak: the text explaining the Borrow trait talks about slices, but the example immediately following just uses a simple reference; there are no slices involved.

r? @steveklabnik
-rw-r--r--src/doc/trpl/borrow-and-asref.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/trpl/borrow-and-asref.md b/src/doc/trpl/borrow-and-asref.md
index f5f314f1c21..64261165bf3 100644
--- a/src/doc/trpl/borrow-and-asref.md
+++ b/src/doc/trpl/borrow-and-asref.md
@@ -47,9 +47,9 @@ This is because the standard library has `impl Borrow<str> for String`.
 
 For most types, when you want to take an owned or borrowed type, a `&T` is
 enough. But one area where `Borrow` is effective is when there’s more than one
-kind of borrowed value. Slices are an area where this is especially true: you
-can have both an `&[T]` or a `&mut [T]`. If we wanted to accept both of these
-types, `Borrow` is up for it:
+kind of borrowed value. This is especially true of references and slices: you
+can have both an `&T` or a `&mut T`. If we wanted to accept both of these types,
+`Borrow` is up for it:
 
 ```
 use std::borrow::Borrow;