Skip to content

Commit 97a9f0d

Browse files
authored
Merge pull request #3 from simdjson/pauldreik-patch-1
fix typo in cppcon_2025_slides.md
2 parents 7a26ed0 + e6991a9 commit 97a9f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cppcon2025/cppcon_2025_slides.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ std::string to_json(Player& p) {
166166
```cpp
167167
object obj = val.get_object();
168168
p.username = obj["username"].get_string();
169-
p.level = obj["username"].get_int64();
169+
p.level = obj["level"].get_int64();
170170
p.health = obj["health"].get_double();
171171
array arr = obj["inventory"].get_array();
172172
for (auto item : arr) {
@@ -688,4 +688,4 @@ Daniel Lemire and Francisco Geiman Thiesen
688688
689689
GitHub: github.com/simdjson/simdjson
690690
691-
Thank you!
691+
Thank you!

0 commit comments

Comments
 (0)