Skip to content

Commit

Permalink
clarify note re. leading :: in 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril authored Feb 10, 2020
1 parent d68e28c commit a4cdf6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/paths.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ mod a {
}
mod b {
pub fn foo() {
::a::foo(); // call a's foo function
::a::foo(); // call `a`'s foo function
// In Rust 2018, `::a` would be interpreted as the crate `a`.
}
}
# fn main() {}
Expand Down

0 comments on commit a4cdf6d

Please sign in to comment.