From 7f8e7c077235ff71cde792c39fae711d76a0c394 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sat, 1 Jun 2019 19:51:49 +0700 Subject: [PATCH] doc: Remove `pub` from trait definition in foo lint example --- doc/adding_lints.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/adding_lints.md b/doc/adding_lints.md index a80ee9f5435..2a8ef01ba1d 100644 --- a/doc/adding_lints.md +++ b/doc/adding_lints.md @@ -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