Skip to content

Commit c9f5e17

Browse files
authored
Merge pull request #1267 from funkill/enum_alias
Added type alias enum variant rfc
2 parents 3fc05f8 + 92420fa commit c9f5e17

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/custom_types/enum.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn main() {
5555

5656
## Type aliases
5757

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.
5959
This might be useful if the enum's name is too long or too generic, and you
6060
want to rename it.
6161

@@ -93,16 +93,17 @@ impl VeryVerboseEnumOfThingsToDoWithNumbers {
9393
}
9494
```
9595

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
9797
[stabilization report][aliasreport] from when this feature was stabilized into
98-
Rust.
98+
Rust.
9999

100100
### See also:
101101

102-
[`match`][match], [`fn`][fn], and [`String`][str], []
102+
[`match`][match], [`fn`][fn], and [`String`][str], ["Type alias enum variants" RFC][type_alias_rfc]
103103

104104
[c_struct]: https://en.wikipedia.org/wiki/Struct_(C_programming_language)
105105
[match]: ../flow_control/match.md
106106
[fn]: ../fn.md
107107
[str]: ../std/str.md
108108
[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

0 commit comments

Comments
 (0)