From cd30ea3f42ae45f28b2d96827b55b8c8ff706252 Mon Sep 17 00:00:00 2001 From: Michael Morehouse <640167+yawpitch@users.noreply.github.com> Date: Tue, 18 Feb 2020 19:28:12 +0000 Subject: [PATCH] Minor typo fix in src/mod/visibility Believe this was meant to read "mod" not "mode", but "module" seems clearest. --- src/mod/visibility.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/visibility.md b/src/mod/visibility.md index 84840e43de..173122c72a 100644 --- a/src/mod/visibility.md +++ b/src/mod/visibility.md @@ -101,7 +101,7 @@ fn main() { // pub(crate) items can be called from anywhere in the same crate my_mod::public_function_in_crate(); - // pub(in path) items can only be called from within the mode specified + // pub(in path) items can only be called from within the module specified // Error! function `public_function_in_my_mod` is private //my_mod::nested::public_function_in_my_mod(); // TODO ^ Try uncommenting this line