1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-17 21:27:56 +02:00

Fix typo in enums.md (#958)

From #779.
This commit is contained in:
Martin Geisler 2023-07-12 18:43:02 +02:00 committed by GitHub
parent c564ca625f
commit 6d736d69c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ fn main() {
Key Points:
* Enumerations allow you to collect a set of values under one type
* This page offers an enum type `CoinFlip` with two variants `Heads` and `Tail`. You might note the namespace when using variants.
* This page offers an enum type `CoinFlip` with two variants `Heads` and `Tails`. You might note the namespace when using variants.
* This might be a good time to compare Structs and Enums:
* In both, you can have a simple version without fields (unit struct) or one with different types of fields (variant payloads).
* In both, associated functions are defined within an `impl` block.