From 0bf8830e120b174571d2c6f41a9b049dab74e07f Mon Sep 17 00:00:00 2001 From: John French 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 8bee8b6..de20dd8 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.