File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -346,14 +346,15 @@ mod else_keyword {}
346
346
/// When data follows along with a variant, such as with rust's built-in [`Option`] type, the data
347
347
/// is added as the type describes, for example `Option::Some(123)`. The same follows with
348
348
/// struct-like variants, with things looking like `ComplexEnum::LotsOfThings { usual_struct_stuff:
349
- /// true, blah: "hello!".to_string(), }`. Empty Enums are similar to () in that they cannot be
349
+ /// true, blah: "hello!".to_string(), }`. Empty Enums are similar to [`!`] in that they cannot be
350
350
/// instantiated at all, and are used mainly to mess with the type system in interesting ways.
351
351
///
352
352
/// For more information, take a look at the [Rust Book] or the [Reference]
353
353
///
354
354
/// [ADT]: https://en.wikipedia.org/wiki/Algebraic_data_type
355
355
/// [Rust Book]: ../book/ch06-01-defining-an-enum.html
356
356
/// [Reference]: ../reference/items/enumerations.html
357
+ /// [`!`]: primitive.never.html
357
358
mod enum_keyword { }
358
359
359
360
#[ doc( keyword = "extern" ) ]
You can’t perform that action at this time.
0 commit comments