Skip to content

Commit c3ba630

Browse files
committed
apply nimpretty to source
1 parent ad86a36 commit c3ba630

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cppstl/std_complex.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ func conj*[T: SomeFloat](self: CppComplex[T]): CppComplex[T] {.importcpp: "std::
3131
{.pop.}
3232
3333
import complex
34-
proc toComplex*[T](c: CppComplex[T]) : Complex[T] =
34+
proc toComplex*[T](c: CppComplex[T]): Complex[T] =
3535
result.re = c.real()
3636
result.im = c.imag()
3737
38-
proc toCppComplex*[T](c: Complex[T]) : CppComplex[T] =
38+
proc toCppComplex*[T](c: Complex[T]): CppComplex[T] =
3939
result = initCppComplex(c.re, c.im)
4040
4141
proc `$`*[T](c: CppComplex[T]): string =

cppstl/std_string.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ proc last*(v: CppString): cchar {.inline.} =
287287
v.back()
288288

289289
# Nim Iterators
290-
iterator items*(v: CppString): cchar=
290+
iterator items*(v: CppString): cchar =
291291
## Iterate over all the elements in CppString `v`.
292292
for idx in 0.csize_t ..< v.len():
293293
yield v[idx]
@@ -297,7 +297,7 @@ iterator pairs*(v: CppString): (csize_t, cchar) =
297297
for idx in 0.csize_t ..< v.len():
298298
yield (idx, v[idx])
299299

300-
iterator mitems*(v: var CppString): var cchar=
300+
iterator mitems*(v: var CppString): var cchar =
301301
## Iterate over all the elements in CppString `v`.
302302
for idx in 0.csize_t ..< v.len():
303303
yield v[idx]

cppstl/std_vector.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ proc last*[T](v: CppVector[T]): T {.inline.} =
483483
484484
# Nim Iterators
485485
486-
iterator items*[T](v: CppVector[T]): T=
486+
iterator items*[T](v: CppVector[T]): T =
487487
## Iterate over all the elements in CppVector `v`.
488488
runnableExamples:
489489
var

0 commit comments

Comments
 (0)