Skip to content

Commit 422bcd7

Browse files
committed
Include 2015 description.
1 parent c347f0a commit 422bcd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/visibility-and-privacy.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ be a parent module of the item whose visibility is being declared.
155155
to `pub(in self)`.
156156

157157
> **Edition Differences**: Starting with the 2018 edition, paths for
158-
> `pub(in path)` must start with `crate`, `self`, or `super`.
158+
> `pub(in path)` must start with `crate`, `self`, or `super`. The 2015 edition
159+
> may also use paths starting with `::` or modules from the crate root.
159160
160161
Here's an example:
161162

0 commit comments

Comments
 (0)