mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-08 19:42:12 +00:00
hayro-syntax: note that an empty dictionary's Debug output has no braces
DebugStruct::finish() writes the closing brace only when a field was added, so an empty Dict prints as Dict. Qualify the Debug line in vendor/README.craft-reader.md and the repair entry in SOURCE.json.
This commit is contained in:
1 parent
c04f773850
commit
7b7b8b4015
2 files changed
+3
-2
No files matched your search
Vendored
+2
-1
@@ -113,7 +113,8 @@ Raw array iteration now ends safely if validation and object parsing disagree;
|
||||
standalone sign tokens retain the reader's zero tolerance.
|
||||
`Dict::entries` and a dictionary's `Debug` output skip an entry whose value does not parse,
|
||||
as in [Hayro #1501](https://github.com/LaurenzV/hayro/pull/1501).
|
||||
The `Debug` output of a dictionary or an array ends with its closing brace or bracket.
|
||||
The `Debug` output of an array ends with its closing bracket, and that of a dictionary
|
||||
with entries ends with its closing brace; an empty dictionary prints as `Dict`.
|
||||
Byte transfer-function samples use rounded 8-bit values; failed or non-finite evaluations
|
||||
leave the sample unchanged. Historical source hashes remain in each `SOURCE.json`,
|
||||
alongside local hashes and the compatibility reference.
|
||||
|
||||
Vendored
+1
-1
@@ -372,6 +372,6 @@
|
||||
"Match existing standalone-plus-as-zero tolerance in number parsing while retaining regular-character terminator rejection and numeric overflow guards.",
|
||||
"End raw array iteration on object parse failure instead of panicking when validation and parsing differ.",
|
||||
"Skip a dictionary entry whose value does not parse in Dict::entries and Dict's Debug output instead of panicking, as in LaurenzV/hayro#1501 (23a8e290d4195ab31f737c12a1b079c114cdd13c).",
|
||||
"End Dict and Array Debug output with finish(), as upstream does, so the closing brace or bracket is printed."
|
||||
"End Dict and Array Debug output with finish(), as upstream does, so an array's closing bracket and a non-empty dictionary's closing brace are printed (an empty dictionary prints as Dict)."
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user