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 May 19, 2021
1 parent 5586447 commit 7052503
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 7052503

Please sign in to comment.