mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-05 19:34:12 +00:00
make tests green again
This commit is contained in:
@@ -7,7 +7,7 @@ discard """
|
||||
|
||||
# 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`.
|
||||
result = int(x.b - x.a) + x.a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user