Skip to content

Commit 6470910

Browse files
committed
fix review stuff
1 parent 82032e2 commit 6470910

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

_posts/2018-01-04-Rust-1.23.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ appropriate page on our website, and check out the [detailed release notes for
2323

2424
## What's in 1.23.0 stable
2525

26-
New year, new Rust! For our first improvement today, we now [avoid some uneccesary
26+
New year, new Rust! For our first improvement today, we now [avoid some unnecessary
2727
copies](https://github.com/rust-lang/rust/pull/45380) in certain situations.
28-
We've seen memory usage drop 5-10% with this change.
28+
We've seen memory usage of using `rustc` to drop 5-10% with this change; it may
29+
be different with your programs.
2930

3031
The documentation team has been on a long journey to move `rustdoc` to use
3132
[CommonMark]. Previously, `rustdoc` never guaranteed which markdown rendering
@@ -80,19 +81,19 @@ to import the trait. Thanks to our stability guarantees, this trait still exists
8081
like to still support Rust versions before Rust 1.23, you can do this:
8182

8283
```rust
83-
#[warn(unused_imports)]
84+
#[allow(unused_imports)]
8485
use std::ascii::AsciiExt;
8586
```
8687

87-
To supress the related warning. Once you drop support for older Rusts, you
88+
…to suppress the related warning. Once you drop support for older Rusts, you
8889
can remove both lines, and everything will continue to work.
8990

9091
[`AsciiExt`]: https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html
9192

9293
Additionally, a few new APIs were stabilized this release:
9394

9495
* The various [`std::sync::atomic
95-
types`](https://doc.rust-lang.org/beta/std/sync/atomic/index.html#structs)
96+
types`](https://doc.rust-lang.org/std/sync/atomic/index.html#structs)
9697
now implement `From` their non-atomic types. For example, `let x = AtomicBool::from(true);`.
9798
* [`()` now implements `FromIterator<()>`](https://github.com/rust-lang/rust/pull/45379); check the PR for
9899
a neat use-case.

0 commit comments

Comments
 (0)