about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2020-05-18 20:14:38 +0100
committerNadrieril <nadrieril+git@gmail.com>2020-05-18 20:14:38 +0100
commit159f48cdc287047b06bd97751b22a5a423d6945e (patch)
tree9692ab8674cac20e30f485e97abb03d9d5bb2fc5
parent4c6510bee5ce2b9f9281309dc27f848f2bd3af2c (diff)
downloadrust-159f48cdc287047b06bd97751b22a5a423d6945e.tar.gz
rust-159f48cdc287047b06bd97751b22a5a423d6945e.zip
Don't mention function pointers
See https://github.com/rust-lang/rust/pull/71930#discussion_r426762889
-rw-r--r--src/librustc_mir_build/hair/pattern/_match.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_mir_build/hair/pattern/_match.rs b/src/librustc_mir_build/hair/pattern/_match.rs
index d08319e8327..16d783fcad2 100644
--- a/src/librustc_mir_build/hair/pattern/_match.rs
+++ b/src/librustc_mir_build/hair/pattern/_match.rs
@@ -64,9 +64,9 @@
 /// (`Constructor`, `Fields`) pairs, handling all the special cases correctly.
 ///
 /// Caveat: this constructors/fields distinction doesn't quite cover every Rust value. For example
-/// a value of type `Rc<u64>` doesn't fit this idea very well, nor do function pointers and various
-/// other things. However, the idea covers everything that can be pattern-matched, and this is all
-/// we need for exhaustiveness checking.
+/// a value of type `Rc<u64>` doesn't fit this idea very well, nor do various other things.
+/// However, this idea covers everything that can be pattern-matched, and this is all we need for
+/// exhaustiveness checking.
 ///
 ///
 /// # Algorithm