Skip to content

Commit

Permalink
style-guide: Expand example of combinable expressions to include arrays
Browse files Browse the repository at this point in the history
Arrays are allowed as combinable expressions, but none of the examples
show that.
  • Loading branch information
joshtriplett committed Jul 5, 2023
1 parent 5dac6b3 commit ddd5fd1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/doc/style-guide/src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,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
Expand Down

0 comments on commit ddd5fd1

Please sign in to comment.