diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-05-19 19:18:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 19:18:16 +0200 |
commit | 7052503ca8d360f11fabf476f7450dc3f794a602 (patch) | |
tree | c07989824952e908db544509c0cdb61035199c67 | |
parent | 558644725ddcb72ae4e0b34ad5cfb1d38e2c5385 (diff) | |
download | Nim-7052503ca8d360f11fabf476f7450dc3f794a602.tar.gz |
make strformat part of the prelude (#18046)
-rw-r--r-- | changelog.md | 3 | ||||
-rw-r--r-- | lib/pure/prelude.nim | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 97e749337..f9c48e0bf 100644 --- a/changelog.md +++ b/changelog.md @@ -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` diff --git a/lib/pure/prelude.nim b/lib/pure/prelude.nim index f1728b5f7..3c98d9d57 100644 --- a/lib/pure/prelude.nim +++ b/lib/pure/prelude.nim @@ -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] |