Skip to content

Commit

Permalink
make strformat part of the prelude (nim-lang#18046)
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored and PMunch committed Mar 28, 2022
1 parent 8d1cf76 commit cd51193
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion lib/pure/prelude.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit cd51193

Please sign in to comment.