From 12663fcbd4886c3ad406482a8ff25c3c39b3b26f Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Sat, 10 Dec 2016 15:04:45 -0800 Subject: [PATCH] Fix alignment in side-by-side code example. --- src/ch10-01-syntax.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, } }