Skip to content

Commit d165681

Browse files
committed
path-clarity: Fix visibility bug
1 parent f5b5649 commit d165681

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/rust-2018/path-clarity.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ extern crate futures;
109109
use futures::Future;
110110
111111
mod foo {
112-
struct Bar;
112+
pub struct Bar;
113113
}
114114
115115
use foo::Bar;
@@ -140,7 +140,7 @@ crate` line:
140140
use futures::Future;
141141
142142
mod foo {
143-
struct Bar;
143+
pub struct Bar;
144144
}
145145
146146
use foo::Bar;
@@ -172,7 +172,7 @@ mod submodule {
172172
use futures::Future;
173173
174174
mod foo {
175-
struct Bar;
175+
pub struct Bar;
176176
}
177177
178178
use foo::Bar;
@@ -224,7 +224,7 @@ extern crate futures;
224224
use futures::Future;
225225
226226
mod foo {
227-
struct Bar;
227+
pub struct Bar;
228228
}
229229
230230
use foo::Bar;
@@ -239,7 +239,7 @@ Now looks like this:
239239
use futures::Future;
240240
241241
mod foo {
242-
struct Bar;
242+
pub struct Bar;
243243
}
244244
245245
// 'crate' means the current crate

0 commit comments

Comments
 (0)