Skip to content

Commit 5d33ab1

Browse files
committed
fix some typos in !-related test comments
1 parent 2fcbda6 commit 5d33ab1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/mir-opt/uninhabited_not_read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// skip-filecheck
22

33
//@ edition: 2021
4-
// In ed 2021 and below, we don't fallback `!` to `()`.
4+
// In ed 2021 and below, we fallback `!` to `()`.
55
// This would introduce a `! -> ()` coercion which would
66
// be UB if we didn't disallow this explicitly.
77

tests/ui/consts/const-eval/raw-bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const BAD_ENUM2: Enum2 = unsafe { mem::transmute(0usize) };
3434
#[derive(Copy, Clone)]
3535
enum Never {}
3636

37-
// An enum with 3 variants of which some are uninhabited -- so the uninhabited variants *do*
37+
// An enum with 4 variants of which only some are uninhabited -- so the uninhabited variants *do*
3838
// have a discriminant.
3939
enum UninhDiscriminant {
4040
A,

0 commit comments

Comments
 (0)