This commit is contained in:
Veetaha 2020-06-04 01:48:47 +03:00 committed by GitHub
parent 65a3cc21ed
commit 41ae7ed79f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,7 +170,7 @@ https://www.tedinski.com/2018/02/06/system-boundaries.html
We separate import groups with blank lines We separate import groups with blank lines
``` ```rust
mod x; mod x;
mod y; mod y;
@ -195,7 +195,7 @@ Put `struct`s and `enum`s first, functions and impls last.
Do Do
``` ```rust
// Good // Good
struct Foo { struct Foo {
bars: Vec<Bar> bars: Vec<Bar>
@ -206,7 +206,7 @@ struct Bar;
rather than rather than
``` ```rust
// Not as good // Not as good
struct Bar; struct Bar;