mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
better documentation for underscore pattern
This commit is contained in:
parent
e0af069645
commit
64220567e5
2 changed files with 5 additions and 1 deletions
|
@ -1677,6 +1677,10 @@ pub enum Pattern<'a> {
|
|||
},
|
||||
FloatLiteral(&'a str),
|
||||
StrLiteral(StrLiteral<'a>),
|
||||
|
||||
/// Underscore pattern
|
||||
/// Contains the name of underscore pattern (e.g. "a" is for "_a" in code)
|
||||
/// Empty string is unnamed pattern ("" is for "_" in code)
|
||||
Underscore(&'a str),
|
||||
SingleQuote(&'a str),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue