diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2023-07-20 13:51:46 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2023-07-20 17:57:21 -0700 |
| commit | 77d09cb69e7e459b6eee9d7564844c73064b2e84 (patch) | |
| tree | 05ab283c64aa787ae3cc51f85acf85d00ffdb4ab | |
| parent | 144e8a38669c874464624e4d27f418eb02f29eff (diff) | |
| download | rust-77d09cb69e7e459b6eee9d7564844c73064b2e84.tar.gz rust-77d09cb69e7e459b6eee9d7564844c73064b2e84.zip | |
Clarify wording on breaking arrays across lines
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
| -rw-r--r-- | src/doc/style-guide/src/expressions.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/style-guide/src/expressions.md b/src/doc/style-guide/src/expressions.md index 42ecc442eb3..0aed8763a06 100644 --- a/src/doc/style-guide/src/expressions.md +++ b/src/doc/style-guide/src/expressions.md @@ -254,7 +254,7 @@ fn main() { } ``` -For arrays large enough to break across lines, if using the repeating +For arrays that have to be broken across lines, if using the repeating initializer, break after the `;`, not before. Otherwise, follow the rules below for function calls. In any case, block-indent the contents of the initializer, and put line breaks after the opening square bracket and before the closing |
