Skip to content

Commit a4cdf6d

Browse files
authored
clarify note re. leading :: in 2018
1 parent d68e28c commit a4cdf6d

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)