summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-05-19 19:18:16 +0200
committerGitHub <noreply@github.com>2021-05-19 19:18:16 +0200
commit7052503ca8d360f11fabf476f7450dc3f794a602 (patch)
treec07989824952e908db544509c0cdb61035199c67
parent558644725ddcb72ae4e0b34ad5cfb1d38e2c5385 (diff)
downloadNim-7052503ca8d360f11fabf476f7450dc3f794a602.tar.gz
make strformat part of the prelude (#18046)
-rw-r--r--changelog.md3
-rw-r--r--lib/pure/prelude.nim2
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]