diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-07-28 15:53:39 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-07-28 15:53:39 +0200 |
| commit | 683ee75703f9bde9ecf34ae3ec6ab2c3b68b52b2 (patch) | |
| tree | 4ba4cf55ff7d99b0e5910df2f4e0c6ef4fb4088d /core/encoding/xml/example/xml_example.odin | |
| parent | 5ac7fe453f5fbf0995c24f0c1c12ed439ae3aee9 (diff) | |
Fix #2684
Diffstat (limited to 'core/encoding/xml/example/xml_example.odin')
| -rw-r--r-- | core/encoding/xml/example/xml_example.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/encoding/xml/example/xml_example.odin b/core/encoding/xml/example/xml_example.odin index 887b40764..aebb8d0ea 100644 --- a/core/encoding/xml/example/xml_example.odin +++ b/core/encoding/xml/example/xml_example.odin @@ -72,10 +72,10 @@ example :: proc() { return } - printf("Found `<charlist>` with %v children, %v elements total\n", len(docs[0].elements[charlist].children), docs[0].element_count) + printf("Found `<charlist>` with %v children, %v elements total\n", len(docs[0].elements[charlist].value), docs[0].element_count) - crc32 := doc_hash(docs[0]) - printf("[%v] CRC32: 0x%08x\n", "🎉" if crc32 == 0xcaa042b9 else "🤬", crc32) + crc32 := doc_hash(docs[0], false) + printf("[%v] CRC32: 0x%08x\n", "🎉" if crc32 == 0x420dbac5 else "🤬", crc32) for round in 0..<N { defer xml.destroy(docs[round]) |