From 0b04b171838d2ce35b51597ad7166b647d7a8d89 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 15 May 2015 12:44:24 -0700 Subject: [PATCH] Make description of Borrow trait uses match the example. --- src/doc/trpl/borrow-and-asref.md | 6 +++--- 1 file 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 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; -- 2.44.0