Skip to content

Commit aaea55e

Browse files
NickNasomhdawson
authored andcommitted
Little fix on code example
PR-URL: #470 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Hitesh Kanwathirtha <[email protected]>
1 parent e1cf9a3 commit aaea55e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/object.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ Void Init(Env env) {
2323

2424
// Assign values to properties
2525
obj.Set("hello", "world");
26-
obj.Set(42, "The Answer to Life, the Universe, and Everything");
26+
obj.Set(uint32_t(42), "The Answer to Life, the Universe, and Everything");
2727
obj.Set("Douglas Adams", true);
2828

2929
// Get properties
3030
Value val1 = obj.Get("hello");
31-
Value val2 = obj.Get(42);
31+
Value val2 = obj.Get(uint32_t(42));
3232
Value val3 = obj.Get("Douglas Adams");
3333

3434
// Test if objects have properties.

0 commit comments

Comments
 (0)