about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorchristopherdumas <christopherdumas@me.com>2015-09-03 14:39:34 -0700
committerchristopherdumas <christopherdumas@me.com>2015-09-03 14:39:34 -0700
commit17fde3a34d8dfa07378cbff0f2552b41071e032f (patch)
tree56c06858bb9fd26356739ca98ec07e73459b63bc /src
parentb7b1dced3c0ab90144b4844498a3b678d690b20e (diff)
downloadrust-17fde3a34d8dfa07378cbff0f2552b41071e032f.tar.gz
rust-17fde3a34d8dfa07378cbff0f2552b41071e032f.zip
Removed incorrect reference from #28196
Diffstat (limited to 'src')
-rw-r--r--src/doc/reference.md10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index dbcfafaf1c1..900d1306e05 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -3200,16 +3200,6 @@ let z = match x { &0 => "zero", _ => "some" };
 assert_eq!(y, z);
 ```
 
-A pattern that's just an identifier, like `Nil` in the previous example, could
-either refer to an enum variant that's in scope, or bind a new variable. The
-compiler resolves this ambiguity by forbidding variable bindings that occur in
-`match` patterns from shadowing names of variants that are in scope. For
-example, wherever `List` is in scope, a `match` pattern would not be able to
-bind `Nil` as a new name. The compiler interprets a variable pattern `x` as a
-binding _only_ if there is no variant named `x` in scope. A convention you can
-use to avoid conflicts is simply to name variants with upper-case letters, and
-local variables with lower-case letters.
-
 Multiple match patterns may be joined with the `|` operator. A range of values
 may be specified with `...`. For example: