typetraits: Dots for sentence endings.

This commit is contained in:
Araq 2018-09-15 20:32:11 +02:00
commit 7df722844b

View file

@ -52,11 +52,11 @@ proc genericHead*(t: typedesc): typedesc {.magic: "TypeTrait".}
## seq[int].genericHead[float] will be seq[float] ## seq[int].genericHead[float] will be seq[float]
## ##
## A compile-time error will be produced if the supplied type ## A compile-time error will be produced if the supplied type
## is not generic ## is not generic.
proc stripGenericParams*(t: typedesc): typedesc {.magic: "TypeTrait".} proc stripGenericParams*(t: typedesc): typedesc {.magic: "TypeTrait".}
## This trait is similar to `genericHead`, but instead of producing ## This trait is similar to `genericHead`, but instead of producing
## error for non-generic types, it will just return them unmodified ## error for non-generic types, it will just return them unmodified.
proc supportsCopyMem*(t: typedesc): bool {.magic: "TypeTrait".} proc supportsCopyMem*(t: typedesc): bool {.magic: "TypeTrait".}
## This trait returns true iff the type ``t`` is safe to use for ## This trait returns true iff the type ``t`` is safe to use for