aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/style.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/dev/style.md')
-rw-r--r--docs/dev/style.md7
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
297Use `Vec::new` rather than `vec![]`. **Rationale:** uniformity, strength 297Use `Vec::new` rather than `vec![]`.
298reduction. 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