small docs fix in typetraits (#14108)

This commit is contained in:
hlaaftana 2020-04-25 21:35:20 +03:00 • committed by GitHub
commit 31ba27590c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ since (1, 1):
since (1, 1): since (1, 1):
template get*(T: typedesc[tuple], i: static int): untyped = template get*(T: typedesc[tuple], i: static int): untyped =
## Return `i`th element of `T` ## Return `i`\th element of `T`
# Note: `[]` currently gives: `Error: no generic parameters allowed for ...` # Note: `[]` currently gives: `Error: no generic parameters allowed for ...`
type(default(T)[i]) type(default(T)[i])