Improved docs (allman syntax)
This commit is contained in:
@@ -25,11 +25,11 @@ match value {
|
||||
// Named tuple patterns (newtype)
|
||||
let MyType(value) = my_var;
|
||||
|
||||
// Wildcard / etc
|
||||
// Wildcard / rest
|
||||
let _ = get_side_effect();
|
||||
match x {
|
||||
1 => ...,
|
||||
.. => ..., // rest / etc
|
||||
1 => expr,
|
||||
.. => expr, // rest / etc
|
||||
}
|
||||
|
||||
// Mutable binding in pattern
|
||||
|
||||
Reference in New Issue
Block a user