Rollup merge of #113386 - joshtriplett:style-guide-combinable-expressions, r=compiler-errors
style-guide: Expand example of combinable expressions to include arrays Arrays are allowed as combinable expressions, but none of the examples show that.
This commit is contained in:
commit
87f978d83c
1 changed files with 10 additions and 0 deletions
|
@ -803,6 +803,16 @@ foo(|param| {
|
||||||
action();
|
action();
|
||||||
foo(param)
|
foo(param)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let x = combinable([
|
||||||
|
an_expr,
|
||||||
|
another_expr,
|
||||||
|
]);
|
||||||
|
|
||||||
|
let arr = [combinable(
|
||||||
|
an_expr,
|
||||||
|
another_expr,
|
||||||
|
)];
|
||||||
```
|
```
|
||||||
|
|
||||||
Such behaviour should extend recursively, however, tools may choose to limit the
|
Such behaviour should extend recursively, however, tools may choose to limit the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue