File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ fn main() {
55
55
56
56
## Type aliases
57
57
58
- If you use a type alias, you can refer to each enum variant via its alias.
58
+ If you use a type alias, you can refer to each enum variant via its alias.
59
59
This might be useful if the enum's name is too long or too generic, and you
60
60
want to rename it.
61
61
@@ -93,16 +93,17 @@ impl VeryVerboseEnumOfThingsToDoWithNumbers {
93
93
}
94
94
```
95
95
96
- To learn more about enums and type aliases, you can read the
96
+ To learn more about enums and type aliases, you can read the
97
97
[ stabilization report] [ aliasreport ] from when this feature was stabilized into
98
- Rust.
98
+ Rust.
99
99
100
100
### See also:
101
101
102
- [ ` match ` ] [ match ] , [ ` fn ` ] [ fn ] , and [ ` String ` ] [ str ] , [ ]
102
+ [ ` match ` ] [ match ] , [ ` fn ` ] [ fn ] , and [ ` String ` ] [ str ] , [ "Type alias enum variants" RFC ] [ type_alias_rfc ]
103
103
104
104
[ c_struct ] : https://en.wikipedia.org/wiki/Struct_(C_programming_language)
105
105
[ match ] : ../flow_control/match.md
106
106
[ fn ] : ../fn.md
107
107
[ str ] : ../std/str.md
108
108
[ aliasreport ] : https://github.com/rust-lang/rust/pull/61682/#issuecomment-502472847
109
+ [ type_alias_rfc ] : https://rust-lang.github.io/rfcs/2338-type-alias-enum-variants.html
You can’t perform that action at this time.
0 commit comments