Skip to content

Commit ddd5fd1

Browse files
committed
style-guide: Expand example of combinable expressions to include arrays
Arrays are allowed as combinable expressions, but none of the examples show that.
1 parent 5dac6b3 commit ddd5fd1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/doc/style-guide/src/expressions.md

+10
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,16 @@ foo(|param| {
801801
action();
802802
foo(param)
803803
})
804+
805+
let x = combinable([
806+
an_expr,
807+
another_expr,
808+
]);
809+
810+
let arr = [combinable(
811+
an_expr,
812+
another_expr,
813+
)];
804814
```
805815

806816
Such behaviour should extend recursively, however, tools may choose to limit the

0 commit comments

Comments
 (0)