Skip to content

Commit 4b45bd9

Browse files
committed
Auto merge of rust-lang#4163 - lzutao:doc-fix-foo-example, r=phansch
doc: Remove `pub` from trait definition in foo lint example changelog: none
2 parents 5ab867c + 7f8e7c0 commit 4b45bd9

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)