Skip to content

Commit dd28c6e

Browse files
committed
Update the description about `mrb_load_string(); fix #65
1 parent dfe6149 commit dd28c6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/articles/executing-ruby-code-with-mruby.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ main(void)
7878
{
7979
mrb_state *mrb = mrb_open();
8080
if (!mrb) { /* handle error */ }
81-
// mrb_load_nstring() for strings without null terminator or with known length
81+
// 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
8283
mrb_load_string(mrb, "puts 'hello world'");
8384
mrb_close(mrb);
8485
return 0;

0 commit comments

Comments
 (0)