]> git.lizzy.rs Git - rust.git/commitdiff
Adjust documentation in HAIR.
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 10 Jul 2019 03:17:26 +0000 (05:17 +0200)
committerMazdak Farrokhzad <twingoow@gmail.com>
Sun, 28 Jul 2019 04:53:39 +0000 (06:53 +0200)
src/librustc_mir/hair/pattern/mod.rs

index 1baeda41498ed0d50392d679e6dc886d501ef1a0..f759ec7f219d12d68ec5b8cb80d79548111b7937 100644 (file)
@@ -162,7 +162,7 @@ pub enum PatternKind<'tcx> {
 
     /// Matches against a slice, checking the length and extracting elements.
     /// irrefutable when there is a slice pattern and both `prefix` and `suffix` are empty.
-    /// e.g., `&[ref xs..]`.
+    /// e.g., `&[ref xs @ ..]`.
     Slice {
         prefix: Vec<Pattern<'tcx>>,
         slice: Option<Pattern<'tcx>>,