about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2023-07-05 16:36:47 -0700
committerJosh Triplett <josh@joshtriplett.org>2023-07-20 17:57:21 -0700
commit144e8a38669c874464624e4d27f418eb02f29eff (patch)
tree555a0db5712bf66215e4f4e778c05a594806d70b
parent69d29a70daa5e8df79d2016af681b13c82f561df (diff)
downloadrust-144e8a38669c874464624e4d27f418eb02f29eff.tar.gz
rust-144e8a38669c874464624e4d27f418eb02f29eff.zip
style-guide: Fix example to match the rule it exemplifies (and match rustfmt)
An example immediately following "Put each bound on its own line." did
not put each bound on its own line.
-rw-r--r--src/doc/style-guide/src/items.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/style-guide/src/items.md b/src/doc/style-guide/src/items.md
index 1e7a88065b5..6e5ea335e6a 100644
--- a/src/doc/style-guide/src/items.md
+++ b/src/doc/style-guide/src/items.md
@@ -369,7 +369,8 @@ where
         + Index<RangeTo<Idx>, Output = Self::Output>
         + Index<RangeFrom<Idx>, Output = Self::Output>
         + Index<RangeInclusive<Idx>, Output = Self::Output>
-        + Index<RangeToInclusive<Idx>, Output = Self::Output> + Index<RangeFull>,
+        + Index<RangeToInclusive<Idx>, Output = Self::Output>
+        + Index<RangeFull>,
 ```
 
 ### Type aliases