From ecc5cbeb7bec67be9cebee46f3c92b45aca985f2 Mon Sep 17 00:00:00 2001 From: Nicola Del Gobbo Date: Tue, 16 Apr 2019 16:27:27 +0200 Subject: [PATCH] Little fix on code example --- doc/object.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/object.md b/doc/object.md index 8bee8b653..de20dd899 100644 --- a/doc/object.md +++ b/doc/object.md @@ -23,12 +23,12 @@ Void Init(Env env) { // Assign values to properties obj.Set("hello", "world"); - obj.Set(42, "The Answer to Life, the Universe, and Everything"); + obj.Set(uint32_t(42), "The Answer to Life, the Universe, and Everything"); obj.Set("Douglas Adams", true); // Get properties Value val1 = obj.Get("hello"); - Value val2 = obj.Get(42); + Value val2 = obj.Get(uint32_t(42)); Value val3 = obj.Get("Douglas Adams"); // Test if objects have properties.