You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extracted from the official Rust online documentation
Are you referring to the Book? If so, I believe that's because they aren't running rustfmt on all the code snippets and examples used there (rust-lang/book#1690rust-lang/book#2008)
Hi.
Many parts in the Rust documentation shows
where
clause in front the user type and preserves the left brace in the same line of thefn
keyword, e.g:however, when we format those codes using
rustfmt
, they looks like this:Another example. Before formatting:
After formatting:
Notice the
where
and braces (wrong?) indentation.I'm not sure if it is by design, so I decided to report that.
Thank you!
P.S.: All code examples was extracted from the official Rust online documentation.
The text was updated successfully, but these errors were encountered: