Skip to content

Commit d150e88

Browse files
authored
Rename examples to not use "pub".
1 parent 0564cc9 commit d150e88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/items/type-aliases.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ A type alias to a tuple-struct or unit-struct cannot be used to qualify that typ
2525
```rust,edition2018,compile_fail
2626
struct MyStruct(u32);
2727
28-
use self::MyStruct as PubUse;
29-
type PubType = MyStruct;
28+
use MyStruct as UseAlias;
29+
type TypeAlias = MyStruct;
3030
31-
let _ = PubUse(5); // OK
32-
let _ = PubType(5); // Doesn't work
31+
let _ = UseAlias(5); // OK
32+
let _ = TypeAlias(5); // Doesn't work
3333
```
3434

3535
[IDENTIFIER]: ../identifiers.md

0 commit comments

Comments
 (0)