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:
Matthias Krüger 2023-07-11 00:58:15 +02:00 committed by GitHub
commit 87f978d83c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -803,6 +803,16 @@ foo(|param| {
action();
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