aboutsummaryrefslogtreecommitdiff
path: root/docs/dev
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2021-01-25 12:14:43 +0000
committerLaurenČ›iu Nicola <[email protected]>2021-01-25 12:14:43 +0000
commitf0cffb66b31b0eab70236b311ebe60ecdf67d326 (patch)
treea46320bd162bc26aa37e237a7591fb6a17b2100c /docs/dev
parenta6a5b02f4ca4549bbd150c09aa18ac3c8e18121c (diff)
Fix typo in style guide
Diffstat (limited to 'docs/dev')
-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