We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strutils.addf
ret.addf "foo $1 bar" % ["$"]
strutils.addf chokes on: ret.addf "foo $1 bar" % ["$"]
var ret: string ret.addf "foo $1 bar" % ["$"]
/Users/timothee/git_clone/nim/timn/tests/nim/all/t10851.nim(7) t10851 /Users/timothee/git_clone/nim/Nim_devel/lib/pure/strutils.nim(2753) addf /Users/timothee/git_clone/nim/Nim_devel/lib/pure/strutils.nim(2693) invalidFormatString Error: unhandled exception: invalid format string [ValueError]
works
nim doc ..
$
nim e013ebc91a22eeccc9546498994b0c561e438599 1.3.5
The text was updated successfully, but these errors were encountered:
my bad, % should not be used with addf (unless you want that effect):
%
addf
when true: import strutils var ret: string # ret.addf "foo $1 bar" % ["$"] # bad ret.addf "foo $1 bar", ["$"] # good doAssert ret == "foo $ bar"
Sorry, something went wrong.
No branches or pull requests
strutils.addf
chokes on:ret.addf "foo $1 bar" % ["$"]
Example
Current Output
Expected Output
Possible Solution
Additional Information
nim doc ..
fails when runnableExamples uses$
[devel] [regression] #14485The text was updated successfully, but these errors were encountered: