fixes the typical (not a == b) bug in the documentation (#20643)
* fixes the typical (not a == b) bug; uses runnableExamples * cannot add runnableExamples
This commit is contained in:
parent
d261135c5c
commit
878919a4df
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ proc `==` *(a, b: Color): bool {.borrow.}
|
||||||
## b = colFuchsia
|
## b = colFuchsia
|
||||||
## c = Color(0x00_ff_cc)
|
## c = Color(0x00_ff_cc)
|
||||||
## assert a == b
|
## assert a == b
|
||||||
## assert not a == c
|
## assert not (a == c)
|
||||||
|
|
||||||
template extract(a: Color, r, g, b: untyped) =
|
template extract(a: Color, r, g, b: untyped) =
|
||||||
var r = a.int shr 16 and 0xff
|
var r = a.int shr 16 and 0xff
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue