From 283c0e43caf6d61f4fdaf1320904cd34d7abff9e Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sat, 24 Sep 2022 17:40:08 +0100 Subject: [PATCH] style-guide: Remove trailing space --- src/doc/style-guide/src/expressions.md | 4 ++-- src/doc/style-guide/src/items.md | 4 ++-- src/doc/style-guide/src/statements.md | 4 ++-- 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 = Foo { - f: blimblimblim, + f: blimblimblim, g: blamblamblam, }; -- 2.44.0