Skip to content

Commit

Permalink
Update docs/docs/language_concepts/01_functions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher authored Oct 24, 2023
1 parent 5e2e0c2 commit 46f6db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/language_concepts/01_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46f6db6

Please sign in to comment.