Skip to content

Commit 7f8e7c0

Browse files
committed
doc: Remove pub from trait definition in foo lint example
1 parent f3087c3 commit 7f8e7c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/adding_lints.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ impl A {
5757

5858
// Default trait methods
5959
trait B {
60-
pub fn fo(&self) {}
61-
pub fn foo(&self) {}
62-
pub fn food(&self) {}
60+
fn fo(&self) {}
61+
fn foo(&self) {}
62+
fn food(&self) {}
6363
}
6464

6565
// Plain functions

0 commit comments

Comments
 (0)