about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2022-09-24 17:40:08 +0100
committerJosh Triplett <josh@joshtriplett.org>2022-09-24 19:49:58 +0100
commit283c0e43caf6d61f4fdaf1320904cd34d7abff9e (patch)
treec15430927d24091e124b7590f21a411cab8b898b
parent9a9e8273e4ba8d308f8ce261a4694dc5b42fac9d (diff)
downloadrust-283c0e43caf6d61f4fdaf1320904cd34d7abff9e.tar.gz
rust-283c0e43caf6d61f4fdaf1320904cd34d7abff9e.zip
style-guide: Remove trailing space
-rw-r--r--src/doc/style-guide/src/expressions.md4
-rw-r--r--src/doc/style-guide/src/items.md4
-rw-r--r--src/doc/style-guide/src/statements.md4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/doc/style-guide/src/expressions.md b/src/doc/style-guide/src/expressions.md
index d4352ef1c30..dfa24549b57 100644
--- a/src/doc/style-guide/src/expressions.md
+++ b/src/doc/style-guide/src/expressions.md
@@ -294,7 +294,7 @@ Use parentheses liberally, do not necessarily elide them due to precedence.
 Tools should not automatically insert or remove parentheses. Do not use spaces
 to indicate precedence.
 
-If line-breaking, put the operator on a new line and block indent. Put each 
+If line-breaking, put the operator on a new line and block indent. Put each
 sub-expression on its own line. E.g.,
 
 ```rust
@@ -595,7 +595,7 @@ let x = match foo.bar.baz() {
 };
 ```
 
-Use a trailing comma for a match arm if and only if not using a block. 
+Use a trailing comma for a match arm if and only if not using a block.
 
 Never start a match arm pattern with `|`, e.g.,
 
diff --git a/src/doc/style-guide/src/items.md b/src/doc/style-guide/src/items.md
index 324071eb39a..7439c68d92c 100644
--- a/src/doc/style-guide/src/items.md
+++ b/src/doc/style-guide/src/items.md
@@ -113,7 +113,7 @@ pulled down to its own line and indented again.
 ```rust
 struct Foo {
     a: A,
-    long_name: 
+    long_name:
         LongType,
 }
 ```
@@ -129,7 +129,7 @@ The same guidelines are used for untagged union declarations.
 union Foo {
     a: A,
     b: B,
-    long_name: 
+    long_name:
         LongType,
 }
 ```
diff --git a/src/doc/style-guide/src/statements.md b/src/doc/style-guide/src/statements.md
index 9c3eba12d2e..29b48bb1ee0 100644
--- a/src/doc/style-guide/src/statements.md
+++ b/src/doc/style-guide/src/statements.md
@@ -79,14 +79,14 @@ let foo:
     ALongType =
 {
     an_expression();
-    ...    
+    ...
 };
 
 let Foo {
     f: abcd,
     g: qwer,
 }: Foo<Bar> = Foo {
-    f: blimblimblim, 
+    f: blimblimblim,
     g: blamblamblam,
 };