Skip to content

Commit c73c5a1

Browse files
authored
Merge pull request rust-lang#752 from rust-lang/leading-modsep-2018
clarify note re. leading `::` in 2018
2 parents 26c3fc7 + a4cdf6d commit c73c5a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/paths.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ mod a {
175175
}
176176
mod b {
177177
pub fn foo() {
178-
::a::foo(); // call a's foo function
178+
::a::foo(); // call `a`'s foo function
179+
// In Rust 2018, `::a` would be interpreted as the crate `a`.
179180
}
180181
}
181182
# fn main() {}

0 commit comments

Comments
 (0)