Skip to content

Commit

Permalink
rust-2018/path-changes: add :: to the list of things that can start…
Browse files Browse the repository at this point in the history
… a 'use' path
  • Loading branch information
mattheww committed Sep 6, 2023
1 parent 2751bdc commit 1ff3909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust-2018/path-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ enough to have submodules.
In Rust 2018, paths in `use` declarations and in other code work the same way,
both in the top-level module and in any submodule. You can use a relative path
from the current scope, a path starting from an external crate name, or a path
starting with `crate`, `super`, or `self`.
starting with `::`, `crate`, `super`, or `self`.

Code that looked like this:

Expand Down

0 comments on commit 1ff3909

Please sign in to comment.