From f0cffb66b31b0eab70236b311ebe60ecdf67d326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 25 Jan 2021 14:14:43 +0200 Subject: Fix typo in style guide --- docs/dev/style.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs') 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. **Rationale:** less typing in the common case, uniformity. -Use `Vec::new` rather than `vec![]`. **Rationale:** uniformity, strength -reduction. +Use `Vec::new` rather than `vec![]`. + +**Rationale:** uniformity, strength reduction. ## Functions Over Objects @@ -479,7 +480,7 @@ pub fn reachable_nodes(node: Node) -> FxHashSet { } ``` -**Rational:** re-use allocations, accumulator style is more concise for complex cases. +**Rationale:** re-use allocations, accumulator style is more concise for complex cases. # Style -- cgit v1.2.3