From 46f6db65b0cff3accbe8ff446116ba41e1a799f3 Mon Sep 17 00:00:00 2001 From: jfecher Date: Tue, 24 Oct 2023 10:34:39 -0500 Subject: [PATCH] Update docs/docs/language_concepts/01_functions.md --- docs/docs/language_concepts/01_functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/language_concepts/01_functions.md b/docs/docs/language_concepts/01_functions.md index 88813b0613a..2d7cc95a36d 100644 --- a/docs/docs/language_concepts/01_functions.md +++ b/docs/docs/language_concepts/01_functions.md @@ -20,7 +20,7 @@ By default, functions are visible only within the package they are defined. To m pub fn foo() {} ``` -You can however restrict the visibility of the function to its own crate, by specifying `pub(crate)`: +You can also restrict the visibility of the function to only the crate it was defined in, by specifying `pub(crate)`: ```rust pub(crate) fn foo() {} //foo can only be called within its crate