mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
format
+2
-2
@@ -20,7 +20,7 @@ Here are some rough guidelines to Rust style. They are followed unevenly and the
|
||||
* Constructors should be methods called `new` or `new_with_more_details`.
|
||||
* Constructors that simply convert from another type should be methods called `from_foo`.
|
||||
* When writing a binding to an external library, put the raw C bindings in a module called `ffi` (rather than `ll`). Do not create high-level bindings called `hl`.
|
||||
* lifetime names should be lowercase and are often simply 'a
|
||||
* lifetime names should be lowercase and are often simply `'a`.
|
||||
|
||||
## Trait naming
|
||||
|
||||
@@ -235,4 +235,4 @@ A ```for``` loop is always preferable to a ```while``` loop unless the loop coun
|
||||
# Questions and TODO
|
||||
|
||||
* Do we want to prefer 'top-down' organization?
|
||||
* Prefer unsafe pointers to unsafely transmuting borrowed pointers
|
||||
* Prefer unsafe pointers to unsafely transmuting borrowed pointers
|
||||
Reference in New Issue
Block a user