diff --git a/ch10-01-syntax.html b/ch10-01-syntax.html index 7a7b5947d..e32bdca78 100644 --- a/ch10-01-syntax.html +++ b/ch10-01-syntax.html @@ -150,9 +150,9 @@ be similar to using an argument to a function in the body without declaring it in the signature. We need to tell Rust that we've introduced a generic parameter. The syntax to do that is the angle brackets, like this:
enum OptionalNumber<T> { enum OptionalFloatingPointNumber<T> {
- 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
() after a function name indicates a list of value parameters. Now the only
diff --git a/print.html b/print.html
index e143b54bf..ef8852c5a 100644
--- a/print.html
+++ b/print.html
@@ -7072,9 +7072,9 @@ be similar to using an argument to a function in the body without declaring it
in the signature. We need to tell Rust that we've introduced a generic
parameter. The syntax to do that is the angle brackets, like this:
enum OptionalNumber<T> { enum OptionalFloatingPointNumber<T> {
- 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
() after a function name indicates a list of value parameters. Now the only