From aaea55eda990c42d181a67084f7a17a3f9e56497 Mon Sep 17 00:00:00 2001 From: Nicola Del Gobbo Date: Fri, 17 May 2019 22:34:00 +0200 Subject: [PATCH] Little fix on code example PR-URL: https://github.com/nodejs/node-addon-api/pull/470 Reviewed-By: Michael Dawson Reviewed-By: Hitesh Kanwathirtha --- 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.