Skip to content

Commit 2076ce6

Browse files
committed
path-clarity: Fix visibility bug
1 parent d23f3db commit 2076ce6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/2018/transitioning/modules/path-clarity.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ extern crate futures;
108108
use futures::Future;
109109
110110
mod foo {
111-
struct Bar;
111+
pub struct Bar;
112112
}
113113
114114
use foo::Bar;
@@ -139,7 +139,7 @@ crate` line:
139139
use futures::Future;
140140
141141
mod foo {
142-
struct Bar;
142+
pub struct Bar;
143143
}
144144
145145
use foo::Bar;
@@ -171,7 +171,7 @@ mod submodule {
171171
use futures::Future;
172172
173173
mod foo {
174-
struct Bar;
174+
pub struct Bar;
175175
}
176176
177177
use foo::Bar;
@@ -223,7 +223,7 @@ extern crate futures;
223223
use futures::Future;
224224
225225
mod foo {
226-
struct Bar;
226+
pub struct Bar;
227227
}
228228
229229
use foo::Bar;
@@ -238,7 +238,7 @@ Now looks like this:
238238
use futures::Future;
239239
240240
mod foo {
241-
struct Bar;
241+
pub struct Bar;
242242
}
243243
244244
// 'crate' means the current crate

0 commit comments

Comments
 (0)