Skip to content

Commit ec08dca

Browse files
committed
---
yaml --- r: 15622 b: refs/heads/try c: 9280d0c h: refs/heads/master v: v3
1 parent c64f84c commit ec08dca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: b04b415e0d6c8b069fd2ee9ed2b5aba097413229
5+
refs/heads/try: 9280d0c090ab62a1800c0e423b1da95b1e7db7ec
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/doc/rust.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,8 @@ alt x {
21772177

21782178
The first pattern matches lists constructed by applying `cons` to any head value, and a
21792179
tail value of `@nil`. The second pattern matches `any` list constructed with `cons`,
2180-
ignoring the values of its arguments.
2180+
ignoring the values of its arguments. The difference between `_` and `*` is that the pattern `C(_)` is only type-correct if
2181+
`C` has exactly one argument, while the pattern `C(*)` is type-correct for any enum variant `C`, regardless of how many arguments `C` has.
21812182

21822183
To execute an `alt` expression, first the head expression is evaluated, then
21832184
its value is sequentially compared to the patterns in the arms until a match

0 commit comments

Comments
 (0)