Skip to content

Commit d72022b

Browse files
authored
added trivial dollar (#1104)
1 parent ef01dfc commit d72022b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/std/system/stringimpl.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,3 +334,5 @@ proc fromCString*(s: cstring): string =
334334
## by copying the underlying storage.
335335
let aux = borrowCStringUnsafe(s)
336336
result = aux.terminatingZero()
337+
338+
template `$`*(x: string): string = x

0 commit comments

Comments
 (0)