Skip to content

Commit 92e8228

Browse files
committed
Fixed two little Game Of Thrones References
Fixed: conflicting spelling of "Jon Snow" Fixed: It's call "Night's Watch"
1 parent 763f923 commit 92e8228

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_typeck/diagnostics.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ Erroneous code example:
11741174
11751175
```compile_fail
11761176
#[repr(i32)]
1177-
enum NightWatch {} // error: unsupported representation for zero-variant enum
1177+
enum NightsWatch {} // error: unsupported representation for zero-variant enum
11781178
```
11791179
11801180
It is impossible to define an integer type to be used to represent zero-variant
@@ -1184,16 +1184,16 @@ two solutions. Either you add variants in your enum:
11841184
11851185
```
11861186
#[repr(i32)]
1187-
enum NightWatch {
1188-
JohnSnow,
1187+
enum NightsWatch {
1188+
JonSnow,
11891189
Commander,
11901190
}
11911191
```
11921192
11931193
or you remove the integer represention of your enum:
11941194
11951195
```
1196-
enum NightWatch {}
1196+
enum NightsWatch {}
11971197
```
11981198
"##,
11991199

0 commit comments

Comments
 (0)