@@ -291,17 +291,17 @@ impl<'p, 'tcx> Matrix<'p, 'tcx> {
291291}
292292
293293/// Pretty-printer for matrices of patterns, example:
294- /// ++++++++++++++++++++++++++
295- /// + _ + [] +
296- /// ++++++++++++++++++++++++++
297- /// + true + [First] +
298- /// ++++++++++++++++++++++++++
299- /// + true + [Second(true)] +
300- /// ++++++++++++++++++++++++++
301- /// + false + [_] +
302- /// ++++++++++++++++++++++++++
303- /// + _ + [_, _, ..tail ] +
304- /// ++++++++++++++++++++++++++
294+ /// +++++++++++++++++++++++++++++
295+ /// + _ + [] +
296+ /// +++++++++++++++++++++++++++++
297+ /// + true + [First] +
298+ /// +++++++++++++++++++++++++++++
299+ /// + true + [Second(true)] +
300+ /// +++++++++++++++++++++++++++++
301+ /// + false + [_] +
302+ /// +++++++++++++++++++++++++++++
303+ /// + _ + [_, _, tail @ .. ] +
304+ /// +++++++++++++++++++++++++++++
305305impl < ' p , ' tcx > fmt:: Debug for Matrix < ' p , ' tcx > {
306306 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
307307 write ! ( f, "\n " ) ?;
@@ -1439,7 +1439,7 @@ fn is_useful_specialized<'p, 'a, 'tcx>(
14391439/// In most cases, there's only one constructor that a specific pattern
14401440/// represents, such as a specific enum variant or a specific literal value.
14411441/// Slice patterns, however, can match slices of different lengths. For instance,
1442- /// `[a, b, ..tail ]` can match a slice of length 2, 3, 4 and so on.
1442+ /// `[a, b, tail @ .. ]` can match a slice of length 2, 3, 4 and so on.
14431443///
14441444/// Returns `None` in case of a catch-all, which can't be specialized.
14451445fn pat_constructors < ' tcx > (
@@ -1884,7 +1884,7 @@ fn patterns_for_variant<'p, 'a: 'p, 'tcx>(
18841884/// into `arity` patterns based on the constructor. For most patterns, the step is trivial,
18851885/// for instance tuple patterns are flattened and box patterns expand into their inner pattern.
18861886///
1887- /// OTOH, slice patterns with a subslice pattern (..tail ) can be expanded into multiple
1887+ /// OTOH, slice patterns with a subslice pattern (tail @ .. ) can be expanded into multiple
18881888/// different patterns.
18891889/// Structure patterns with a partial wild pattern (Foo { a: 42, .. }) have their missing
18901890/// fields filled with wild patterns.
0 commit comments