about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2021-01-25 14:14:43 +0200
committerLaurențiu Nicola <lnicola@dend.ro>2021-01-25 14:14:43 +0200
commitf0cffb66b31b0eab70236b311ebe60ecdf67d326 (patch)
treea46320bd162bc26aa37e237a7591fb6a17b2100c /docs/dev
parenta6a5b02f4ca4549bbd150c09aa18ac3c8e18121c (diff)
downloadrust-f0cffb66b31b0eab70236b311ebe60ecdf67d326.tar.gz
rust-f0cffb66b31b0eab70236b311ebe60ecdf67d326.zip
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 428cee3adbe..6dc6868c2cc 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<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