We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfe6149 commit dd28c6eCopy full SHA for dd28c6e
1 file changed
docs/articles/executing-ruby-code-with-mruby.md
@@ -78,7 +78,8 @@ main(void)
78
{
79
mrb_state *mrb = mrb_open();
80
if (!mrb) { /* handle error */ }
81
- // mrb_load_nstring() for strings without null terminator or with known length
+ // mrb_load_string(mrb, str) to load from NULL terminated strings
82
+ // mrb_load_nstring(mrb, str, len) for strings without null terminator or with known length
83
mrb_load_string(mrb, "puts 'hello world'");
84
mrb_close(mrb);
85
return 0;
0 commit comments