mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
make strformat part of the prelude (#18046)
This commit is contained in:
@@ -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`
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user