Skip to content

Commit 7cb74e2

Browse files
committed
markdown fix
1 parent eb1eb06 commit 7cb74e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

active/0000-no-privates-in-public.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ able to click it to see its documentation in turn.
2727
* Being able to use a given type but not *write* the type is disconcerting.
2828
For example:
2929

30-
struct Foo { ... }
31-
pub fn foo() -> Foo { ... }
30+
struct Foo { ... }
31+
pub fn foo() -> Foo { ... }
3232

3333
As a client of this module, I can write `let my_foo = foo();`, but not
3434
`let my_foo: Foo = foo();`. This is a logical consequence of the rules, but
3535
it doesn't make any sense.
3636

3737
* Can I access public fields of a private type? For instance:
3838

39-
struct Foo { pub x: int, ... }
40-
pub fn foo() -> Foo { ... }
39+
struct Foo { pub x: int, ... }
40+
pub fn foo() -> Foo { ... }
4141

4242
Can I now write `foo().x`, even though the struct `Foo` itself is not visible
4343
to me, and in rust-doc, I couldn't see its documentation? In other words,

0 commit comments

Comments
 (0)