make strformat part of the prelude (#18046)

This commit is contained in:
Andreas Rumpf
2021-05-19 19:18:16 +02:00
committed by GitHub
parent 558644725d
commit 7052503ca8
2 changed files with 4 additions and 1 deletions

View File

@@ -73,6 +73,9 @@
- `json` and `jsonutils` now serialize NaN, Inf, -Inf as strings, so that
`%[NaN, -Inf]` is the string `["nan","-inf"]` instead of `[nan,-inf]` which was invalid json.
- `strformat` is now part of `include std/prelude`.
## Standard library additions and changes
- Added support for parenthesized expressions in `strformat`

View File

@@ -25,4 +25,4 @@ when defined(nimdoc) and isMainModule:
# xxx `nim doc -b:js -d:nodejs --doccmd:-d:nodejs lib/pure/prelude.nim` fails for some reason
# specific to `nim doc`, but the code otherwise works with nodejs.
import std/[os, strutils, times, parseutils, hashes, tables, sets, sequtils, parseopt]
import std/[os, strutils, times, parseutils, hashes, tables, sets, sequtils, parseopt, strformat]