aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/xml/example
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2023-07-28 15:53:39 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2023-07-28 15:53:39 +0200
commit683ee75703f9bde9ecf34ae3ec6ab2c3b68b52b2 (patch)
tree4ba4cf55ff7d99b0e5910df2f4e0c6ef4fb4088d /core/encoding/xml/example
parent5ac7fe453f5fbf0995c24f0c1c12ed439ae3aee9 (diff)
Fix #2684
Diffstat (limited to 'core/encoding/xml/example')
-rw-r--r--core/encoding/xml/example/xml_example.odin6
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])