7425: Fix typo in style guide r=lnicola a=lnicola

bors r+

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
bors[bot] 2021-01-25 12:15:16 +00:00 committed by GitHub
commit 82af033f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<Node> {
}
```
**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