Skip to content

Commit 82e9691

Browse files
rebornixkripken
authored andcommitted
docs: update embind code sample comment (#5604)
`incrementX` only adds by 1.
1 parent 8aea22d commit 82e9691

File tree

1 file changed

+1
-1
lines changed
  • site/source/docs/porting/connecting_cpp_and_javascript

1 file changed

+1
-1
lines changed

site/source/docs/porting/connecting_cpp_and_javascript/embind.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ shown below:
150150
151151
var instance = new Module.MyClass(10, "hello");
152152
instance.incrementX();
153-
instance.x; // 12
153+
instance.x; // 11
154154
instance.x = 20; // 20
155155
Module.MyClass.getStringFromInstance(instance); // "hello"
156156
instance.delete();

0 commit comments

Comments
 (0)