Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/doc/src/reference/semver.md
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ fn main() {
let p = Packed { a: 1, b: 2 };
// Some assumption about the size of the type.
// Without `packed`, this fails since the size is 4.
const _: () = assert!(std::mem::size_of::<Packed>() == 3); // Error: evaluation of constant value failed
const _: () = assert!(std::mem::size_of::<Packed>() == 3); // Error: assertion failed
}
```

Expand Down Expand Up @@ -696,7 +696,7 @@ fn main() {
let p = Packed { a: 1, b: 2 };
// Some assumption about the size of the type.
// The alignment has changed from 8 to 4.
const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: evaluation of constant value failed
const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: assertion failed
}
```

Expand Down Expand Up @@ -734,7 +734,7 @@ fn main() {
let p = Packed { a: 1, b: 2 };
// Some assumption about the size of the type.
// The alignment has changed from 8 to 4.
const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: evaluation of constant value failed
const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: assertion failed
}
```

Expand Down
Loading