diff options
author | narimiran <narimiran@disroot.org> | 2019-07-09 13:15:35 +0200 |
---|---|---|
committer | narimiran <narimiran@disroot.org> | 2019-07-09 13:15:35 +0200 |
commit | 96d49608c05647ed5ea22a6b4321b864034bd495 (patch) | |
tree | 5340d7f5849ea10978d3ca88416e98e0705fd043 /nimpretty/tests/expected | |
parent | eefcea88927ee4845d3c46f38394fa39172c9987 (diff) | |
download | Nim-96d49608c05647ed5ea22a6b4321b864034bd495.tar.gz |
nimpretty: more comment indentation fixes
Diffstat (limited to 'nimpretty/tests/expected')
-rw-r--r-- | nimpretty/tests/expected/tevil_spaces.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nimpretty/tests/expected/tevil_spaces.nim b/nimpretty/tests/expected/tevil_spaces.nim index 9c6b08854..7d3a72dfd 100644 --- a/nimpretty/tests/expected/tevil_spaces.nim +++ b/nimpretty/tests/expected/tevil_spaces.nim @@ -43,3 +43,16 @@ proc asyncSingleProc(prc: NimNode): NimNode {.compileTime.} = if tue: foo() # comment here # end if + +proc distribute*[T](s: seq[T], num: Positive, spread = true): seq[seq[T]] = + ## Splits and distributes a sequence `s` into `num` sub-sequences. + let num = int(num) # XXX probably only needed because of .. bug + # This is part of the above. + result = newSeq[seq[T]](num) + +proc distribute*[T](s: seq[T], num: Positive, spread = true): seq[seq[T]] = + ## Splits and distributes a sequence `s` into `num` sub-sequences. + let num = int(num) # XXX probably only needed because of .. bug + + # This belongs below. + result = newSeq[seq[T]](num) |