about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-24 01:04:40 -0700
committerbors <bors@rust-lang.org>2013-05-24 01:04:40 -0700
commit5787bf3093e75aa28fb081160f7d7fa66f528f9c (patch)
treea187fe4358dfe7a41c58c373b3dbe3dd5d632789
parented9a793d244c42e77e40f18a5f243ff58dec07f7 (diff)
parent248a66938181e67855ac6f330ff626a509611a9b (diff)
downloadrust-5787bf3093e75aa28fb081160f7d7fa66f528f9c.tar.gz
rust-5787bf3093e75aa28fb081160f7d7fa66f528f9c.zip
auto merge of #6711 : catamorphism/rust/issue-5700, r=thestinger
r? @nikomatsakis
-rw-r--r--doc/rust.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/rust.md b/doc/rust.md
index 1d5a685a6a2..719750ea7ca 100644
--- a/doc/rust.md
+++ b/doc/rust.md
@@ -2435,10 +2435,11 @@ match x {
 }
 ~~~~
 
-Patterns that bind variables default to binding to a copy of the matched value. This can be made
-explicit using the ```copy``` keyword, changed to bind to a borrowed pointer by using the ```ref```
-keyword, or to a mutable borrowed pointer using ```ref mut```, or the value can be moved into
-the new binding using ```move```.
+Patterns that bind variables default to binding to a copy or move of the matched value
+(depending on the matched value's type).
+This can be made explicit using the ```copy``` keyword,
+changed to bind to a borrowed pointer by using the ```ref``` keyword,
+or to a mutable borrowed pointer using ```ref mut```.
 
 A pattern that's just an identifier,
 like `Nil` in the previous answer,