diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-25 12:15:16 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-25 12:15:16 +0000 |
commit | 82af033f2fa19d370797b7c6f3a99acd3e47c89e (patch) | |
tree | a46320bd162bc26aa37e237a7591fb6a17b2100c /docs/dev | |
parent | a6a5b02f4ca4549bbd150c09aa18ac3c8e18121c (diff) | |
parent | f0cffb66b31b0eab70236b311ebe60ecdf67d326 (diff) |
Merge #7425
7425: Fix typo in style guide r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'docs/dev')
-rw-r--r-- | docs/dev/style.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/dev/style.md b/docs/dev/style.md index 428cee3ad..6dc6868c2 100644 --- a/docs/dev/style.md +++ b/docs/dev/style.md | |||
@@ -294,8 +294,9 @@ Prefer `Default` even it has to be implemented manually. | |||
294 | 294 | ||
295 | **Rationale:** less typing in the common case, uniformity. | 295 | **Rationale:** less typing in the common case, uniformity. |
296 | 296 | ||
297 | Use `Vec::new` rather than `vec![]`. **Rationale:** uniformity, strength | 297 | Use `Vec::new` rather than `vec![]`. |
298 | reduction. | 298 | |
299 | **Rationale:** uniformity, strength reduction. | ||
299 | 300 | ||
300 | ## Functions Over Objects | 301 | ## Functions Over Objects |
301 | 302 | ||
@@ -479,7 +480,7 @@ pub fn reachable_nodes(node: Node) -> FxHashSet<Node> { | |||
479 | } | 480 | } |
480 | ``` | 481 | ``` |
481 | 482 | ||
482 | **Rational:** re-use allocations, accumulator style is more concise for complex cases. | 483 | **Rationale:** re-use allocations, accumulator style is more concise for complex cases. |
483 | 484 | ||
484 | # Style | 485 | # Style |
485 | 486 | ||