Skip to content

Commit b2af1f1

Browse files
committed
fixup
1 parent 7263616 commit b2af1f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/pure/typetraits.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ proc getTypeId*(t: typedesc): TypeId {.since: (1, 1).} =
5757
runnableExamples:
5858
type Foo[T] = object
5959
type Foo2 = Foo
60-
doAssert Foo[int].getTypeId == Foo2[type(1)].getTypeId
61-
doAssert Foo[int].getTypeId != Foo[float].getTypeId
60+
assert Foo[int].getTypeId == Foo2[type(1)].getTypeId
61+
assert Foo[int].getTypeId != Foo[float].getTypeId
6262
TypeId(getTypeIdImpl(t))
6363

64-
proc name*(t: typedesc): string {.magic: "TypeTrait".}
64+
proc name*(t: typedesc): string {.magic: "TypeTrait".} =
6565
## Returns the name of the given type.
6666
##
6767
## Alias for `system.\`$\`(t) <dollars.html#$,typedesc>`_ since Nim v0.20.

0 commit comments

Comments
 (0)