mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
enable experimental:strictDefs (#24225)
This commit is contained in:
@@ -140,4 +140,5 @@ proc addFloat*(result: var string; x: float | float32) {.inline.} =
|
||||
when defined(nimPreviewSlimSystem):
|
||||
func `$`*(x: float | float32): string =
|
||||
## Outplace version of `addFloat`.
|
||||
result = ""
|
||||
result.addFloat(x)
|
||||
|
||||
Reference in New Issue
Block a user