make tests green again
This commit is contained in:
parent
009fcc9f84
commit
e09b2d898d
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ discard """
|
||||||
|
|
||||||
# bug #5430
|
# bug #5430
|
||||||
|
|
||||||
proc random*[T](x: Slice[T, T]): T =
|
proc random*[T](x: Slice[T]): T =
|
||||||
## For a slice `a .. b` returns a value in the range `a .. b-1`.
|
## For a slice `a .. b` returns a value in the range `a .. b-1`.
|
||||||
result = int(x.b - x.a) + x.a
|
result = int(x.b - x.a) + x.a
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue