From afe0d4b72cd88958e663ea0723e041f831b18a9b Mon Sep 17 00:00:00 2001
From: Steve Klabnik
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