Skip to content

Commit 89bc9fa

Browse files
committed
Auto merge of #27418 - taliesinb:tarpl-typo, r=alexcrichton
this makes the second code block consistent with the first code block -- other than being in reversed order, the first code block claims b is u16 and c is u32, whereas the second code block claims the opposite. seems to be an obvious typo.
2 parents 0919f4a + b36890b commit 89bc9fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/tarpl/repr-rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ type's size is a multiple of its alignment. For instance:
3131
```rust
3232
struct A {
3333
a: u8,
34-
c: u32,
35-
b: u16,
34+
b: u32,
35+
c: u16,
3636
}
3737
```
3838

0 commit comments

Comments
 (0)