Explorar o código

fix a forgotten flipping of the parameter name and type (#643)

Jeremy G. Siek %!s(int64=4) %!d(string=hai) anos
pai
achega
2f950d279f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/design/generics/overview.md

+ 1 - 1
docs/design/generics/overview.md

@@ -296,7 +296,7 @@ call site.
 
 
 ```
 ```
 // ERROR: can't determine `U` from explicit parameters
 // ERROR: can't determine `U` from explicit parameters
-fn Illegal[Type:$ T, Type:$ U](x: T) -> U { ... }
+fn Illegal[T:$ Type, U:$ Type](x: T) -> U { ... }
 ```
 ```
 
 
 #### Generic type parameters
 #### Generic type parameters