about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-06-09 17:24:43 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-06-09 17:24:43 -0400
commitc7de6aa3420df3ab84f0a1df893c4da88abb1393 (patch)
treea3c4b4ff04ba0d161e2c5f60ef782928e171468b
parent32c6deec078096dffcda4aa550042503187b646e (diff)
parent0a70c94d6881e2e8cf8f436b077ed54df738aa9e (diff)
Rollup merge of #26125 - nsimplex:master, r=steveklabnik
The text claimed 'any borrow must last for a _smaller_ scope than the
owner', however the accurate way of describing the comparison is
inclusive (i.e., 'less than or equal to' vs. 'less than').
-rw-r--r--src/doc/trpl/references-and-borrowing.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/trpl/references-and-borrowing.md b/src/doc/trpl/references-and-borrowing.md
index 775a6fbd293..b27db2ab7be 100644
--- a/src/doc/trpl/references-and-borrowing.md
+++ b/src/doc/trpl/references-and-borrowing.md
@@ -151,9 +151,9 @@ As it turns out, there are rules.
 
 Here’s the rules about borrowing in Rust:
 
-First, any borrow must last for a smaller scope than the owner. Second, you may
-have one or the other of these two kinds of borrows, but not both at the same
-time:
+First, any borrow must last for a scope no greater than that of the owner.
+Second, you may have one or the other of these two kinds of borrows, but not
+both at the same time:
 
 * one or more references (`&T`) to a resource.
 * exactly one mutable reference (`&mut T`)