More precise "crate" description

pull/76/head
Sudo Nice 4 years ago
parent 3655323a15
commit 2c3f529d49

@ -10549,7 +10549,7 @@ fn main() {
}
```
`crate` means inside this file. Inside that is the mod `print_things`, then finally the `prints_one_thing()` function. You can write that every time, or you can write `use` to import it. Now we can see the error that says that it's private:
`crate` means "inside this project", but for our simple example it's the same as "inside this file". Inside that is the mod `print_things`, then finally the `prints_one_thing()` function. You can write that every time, or you can write `use` to import it. Now we can see the error that says that it's private:
```rust
// ⚠️

Loading…
Cancel
Save