@@ -25,7 +25,7 @@ from the appropriate page on our website, and check out the
25
25
26
26
## What's in 1.50.0 stable
27
27
28
- For this release, we have improved array indexing, expanded union field safety, refined file descriptors, and new library additions .
28
+ For this release, we have improved array indexing, expanded union field safety, refined file descriptors, and added to the standard library .
29
29
See the [ detailed release notes] [ notes ] to learn about other changes
30
30
not covered by this post.
31
31
@@ -63,7 +63,7 @@ assignments to these fields as well.
63
63
64
64
### A niche for ` File ` on Unix platforms
65
65
66
- Some types in Rust have specific limitations on what is considered
66
+ Some types in Rust have specific limitations on what is considered a
67
67
valid value, which may not cover the entire range of possible memory
68
68
values. We call any remaining invalid value a [ niche] , and this space
69
69
may be used for type layout optimizations. For example, in Rust 1.28
@@ -76,7 +76,7 @@ as well because it can never be `-1`! System calls which return a file
76
76
descriptor use ` -1 ` to indicate that an error occurred (check ` errno ` )
77
77
so it's never possible for ` -1 ` to be a real file descriptor. Starting
78
78
in Rust 1.50 this niche is represented to the compiler so it can be
79
- use in layout optimizations too. It follows that ` Option<File> ` will
79
+ used in layout optimizations too. It follows that ` Option<File> ` will
80
80
now have the same size as ` File ` itself!
81
81
82
82
[ niche ] : https://rust-lang.github.io/unsafe-code-guidelines/glossary.html#niche
0 commit comments