make strformat part of the prelude (#18046)
This commit is contained in:
parent
558644725d
commit
7052503ca8
2 changed files with 4 additions and 1 deletions
|
|
@ -73,6 +73,9 @@
|
||||||
- `json` and `jsonutils` now serialize NaN, Inf, -Inf as strings, so that
|
- `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.
|
`%[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
|
## Standard library additions and changes
|
||||||
- Added support for parenthesized expressions in `strformat`
|
- Added support for parenthesized expressions in `strformat`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
# 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.
|
# 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]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue