Skip to content

Commit 2ef290b

Browse files
Fix wrong JS::Object.wrap usage in example doc
1 parent b84aac4 commit 2ef290b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/js/js-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static VALUE _rb_js_proc_to_js(VALUE obj) {
519519
* JS
520520
* # Non JS::Object args are automatically converted to JS::Object by `to_js`.
521521
* js_obj[:method1].call("Hello", 5) # => 10
522-
* js_obj[:method2].call(JS.wrap("Hello, Ruby"))
522+
* js_obj[:method2].call(JS::Object.wrap("Hello, Ruby"))
523523
* # => "HELLO, RUBY" (JS::Object)
524524
*/
525525

0 commit comments

Comments
 (0)