mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
doc: Remove pub
from trait definition in foo lint example
This commit is contained in:
parent
f3087c37bf
commit
7f8e7c0772
@ -57,9 +57,9 @@ impl A {
|
||||
|
||||
// Default trait methods
|
||||
trait B {
|
||||
pub fn fo(&self) {}
|
||||
pub fn foo(&self) {}
|
||||
pub fn food(&self) {}
|
||||
fn fo(&self) {}
|
||||
fn foo(&self) {}
|
||||
fn food(&self) {}
|
||||
}
|
||||
|
||||
// Plain functions
|
||||
|
Loading…
Reference in New Issue
Block a user