diff --git a/src/ch10-01-syntax.md b/src/ch10-01-syntax.md index 5ccbf1292..f2270d184 100644 --- a/src/ch10-01-syntax.md +++ b/src/ch10-01-syntax.md @@ -104,9 +104,9 @@ parameter. The syntax to do that is the angle brackets, like this: ```text enum OptionalNumber { enum OptionalFloatingPointNumber { - Some(T), Some(T), - None, None, -} } + Some(T), Some(T), + None, None, +} } ``` The `<>`s after the enum name indicate a list of type parameters, just like @@ -116,7 +116,7 @@ they're not specific to integers or floating point numbers anymore, so they can have the same name: ```text -enum Option { enum Option { +enum Option { enum Option { Some(T), Some(T), None, None, } }