You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-07 06:55:42 +02:00
Publish Comprehensive Rust 🦀
This commit is contained in:
11
src/modules/paths.md
Normal file
11
src/modules/paths.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Paths
|
||||
|
||||
Paths are resolved as follows:
|
||||
|
||||
1. As a relative path:
|
||||
* `foo` or `self::foo` refers to `foo` in the current module,
|
||||
* `super::foo` refers to `foo` in the parent module.
|
||||
|
||||
2. As an absolute path:
|
||||
* `crate::foo` refers to `foo` in the root of the current crate,
|
||||
* `bar::foo` refers to `foo` in the `bar` crate.
|
Reference in New Issue
Block a user