Skip to content

Commit 8881377

Browse files
author
Ben Striegel
committed
Nits
1 parent a72cf50 commit 8881377

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

text/0000-associated-constants-on-ints.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,14 @@ glances from people new to Rust.
8686
4. Removal of ambiguity between primitive types and their identically-named modules. Currently
8787
if you import an integer module and access constants in the module and methods on the type,
8888
one has no apparent indication as to what comes from where:
89-
9089
```rust
9190
use std::u32;
9291
assert_eq!(u32::MAX, u32::max_value());
9392
```
94-
9593
The fact that this sort of shadowing of primitive types works in the first place is surprising
96-
even to experience Rust programmers; the fact that such a pattern is seemingly encouraged by
94+
even to experienced Rust programmers; the fact that such a pattern is seemingly encouraged by
9795
the standard library is even more of a surprise. By making this change we would be able to
98-
remove all modules in the standard library whose names shadow primitive types.
96+
remove all modules in the standard library whose names shadow integral types.
9997

10098
# Guide-level explanation
10199
[guide-level-explanation]: #guide-level-explanation

0 commit comments

Comments
 (0)