diff options
author | c-blake <c-blake@users.noreply.github.com> | 2024-07-19 10:38:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 12:38:02 +0200 |
commit | 24f5dfbed22322f63d1fc27a07d41f746212a7d3 (patch) | |
tree | 6143f4fc573e76a717bf1f178bac88360d862426 /compiler/semtypinst.nim | |
parent | 3a103669d18408cd75ca5c5c97c34f4222c6e217 (diff) | |
download | Nim-24f5dfbed22322f63d1fc27a07d41f746212a7d3.tar.gz |
Add '.' (period, dot, ..) to `FormatLiterals` so that `ss.fff` can work. (#23861)
Honestly, to me the entire design of a (highly!) restricted set of `FormatLiterals` characters seems antithetical to the very idea of a format string template. Fixing that is a much larger change, though. So, this PR just adds `'.'` so that the standard (both input & output!) notation for decimal numbers in Nim can be used for the seconds part of a time format in `lib/pure/times.format(.., f)`. It should only make legal what was illegal and should be harmless since `'.'` is not used in any special way otherwise.
Diffstat (limited to 'compiler/semtypinst.nim')
0 files changed, 0 insertions, 0 deletions