mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
pub impl Type { ... } triggers a compile-time error at this moment. Also, it has no effect on the visibility of the functions.
@@ -214,10 +214,6 @@ Examples:
|
||||
|
||||
* ```Iterate```
|
||||
|
||||
# Impls
|
||||
|
||||
* Avoid `pub impl Type { ... }`. Instead put `pub ` modifiers on method names. This allows a reader to immediately tell which methods are public quickly.
|
||||
|
||||
# Predicates
|
||||
|
||||
The names of simple boolean predicates should start with "is_" or similarly be expressed using a "small question word".
|
||||
|
||||
Reference in New Issue
Block a user