about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-19 06:10:02 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-19 08:49:38 +0530
commit760f870addfc61b95a9a944406eaac38c8b7bf3d (patch)
treea1e39572ced5c26715d97f4b30d7d2beadd216cd /src
parentf5c61a78999717e9ed34887948cd3de4d7e153d2 (diff)
parent70bf02994a97b92f7284eac70c143893eca936a8 (diff)
downloadrust-760f870addfc61b95a9a944406eaac38c8b7bf3d.tar.gz
rust-760f870addfc61b95a9a944406eaac38c8b7bf3d.zip
Rollup merge of #23497 - steveklabnik:gh21589, r=alexcrichton
 Fixes #21589
Diffstat (limited to 'src')
-rw-r--r--src/doc/trpl/crates-and-modules.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc/trpl/crates-and-modules.md b/src/doc/trpl/crates-and-modules.md
index f6f6046b9b4..65ff42ffdce 100644
--- a/src/doc/trpl/crates-and-modules.md
+++ b/src/doc/trpl/crates-and-modules.md
@@ -562,6 +562,11 @@ place in the hierarchy instead. There's one more special form of `use`: you can
 people like to think of `self` as `.` and `super` as `..`, from many shells'
 display for the current directory and the parent directory.
 
+Outside of `use`, paths are relative: `foo::bar()` refers to a function inside
+of `foo` relative to where we are. If that's prefixed with `::`, as in
+`::foo::bar()`, it refers to a different `foo`, an absolute path from your
+crate root.
+
 Also, note that we `pub use`d before we declared our `mod`s. Rust requires that
 `use` declarations go first.