File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: b04b415e0d6c8b069fd2ee9ed2b5aba097413229
5
+ refs/heads/try: 9280d0c090ab62a1800c0e423b1da95b1e7db7ec
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -2177,7 +2177,8 @@ alt x {
2177
2177
2178
2178
The first pattern matches lists constructed by applying ` cons ` to any head value, and a
2179
2179
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.
2181
2182
2182
2183
To execute an ` alt ` expression, first the head expression is evaluated, then
2183
2184
its value is sequentially compared to the patterns in the arms until a match
You can’t perform that action at this time.
0 commit comments