Skip to content

Commit 158a14a

Browse files
Fixup nits
1 parent b89915d commit 158a14a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

_posts/2018-03-29-Rust-1.25.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@ domain there shortly. We hope this will bring more attention to a great
6262
resource, and you'll get a local copy with your local documentation.
6363

6464
Second, back in Rust 1.23, we talked about the change from Hoedown to
65-
pulldown-cmark. In Rust 1.25, pulldown-cmark is now the default rendering.
66-
After years, we have finally removed the last bit of C from rustdoc, and
67-
properly follow the CommonMark spec.
65+
pulldown-cmark. In Rust 1.25, pulldown-cmark is now the default rendering. We
66+
have finally removed the last bit of C from rustdoc, and now properly follow
67+
the CommonMark spec.
6868

6969
Finally, in [RFC 1358], `#[repr(align(x))]` was accepted. In Rust
7070
1.25, [it is now stable]! This attribute lets you set the [alignment]
7171
of your `struct`s:
7272

7373
```rust
74-
struct NotAligned(i32);
74+
struct Number(i32);
7575

76-
assert_eq!(std::mem::align_of::<NotAligned>(), 4);
77-
assert_eq!(std::mem::size_of::<NotAligned>(), 4);
76+
assert_eq!(std::mem::align_of::<Number>(), 4);
77+
assert_eq!(std::mem::size_of::<Number>(), 4);
7878

7979
#[repr(align(16))]
8080
struct Align16(i32);
@@ -93,7 +93,6 @@ can be very important!
9393
[it is now stable]: https://github.com/rust-lang/rust/pull/47006
9494
[alignment]: https://en.wikipedia.org/wiki/Data_structure_alignment
9595

96-
9796
See the [detailed release notes][notes] for more.
9897

9998
### Library stabilizations
@@ -110,9 +109,9 @@ type for you!
110109
`libcore` has [gained a `time` module](https://doc.rust-lang.org/core/time/),
111110
containing the `Duration` type previously only available in `libstd`.
112111

113-
Additionally, the `new`, `from_secs`, `from_milis`, `from_micros`, and `from_nanos`
114-
functions associated with `Duration` were made `const fn`s, allowing them to be used
115-
to create a `Duration` as a constant expression.
112+
Additionally, the `from_secs`, and `from_milis` functions associated with
113+
`Duration` were made `const fn`s, allowing them to be used to create a
114+
`Duration` as a constant expression.
116115

117116
See the [detailed release notes][notes] for more.
118117

@@ -143,12 +142,13 @@ more](https://github.com/rust-lang/cargo/pull/5013).
143142

144143
Many users love `cargo doc`, a way to generate local documentation for their
145144
Cargo projects. [It's getting a huge speed
146-
bump](https://github.com/rust-lang/cargo/pull/5013) in this release, as now,
147-
it uses `cargo check`, rather than a full `cargo build`.
145+
bump](https://github.com/rust-lang/cargo/pull/4976) in this release, as now,
146+
it uses `cargo check`, rather than a full `cargo build`, so some scenarios
147+
will get faster.
148148

149149
Additionally, checkouts of git dependencies [should be a lot
150150
faster](https://github.com/rust-lang/cargo/pull/4919), thanks to the use of
151-
hard links where possible.
151+
hard links when possible.
152152

153153
See the [detailed release notes][notes] for more.
154154

0 commit comments

Comments
 (0)