From 4d93340d3836bc454cee0c74715a412d090ff178 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 22 May 2019 16:33:03 +0900 Subject: [PATCH] ast.c: update inspect results in the documents --- ast.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ast.c b/ast.c index 2d219092c7..a1af214b33 100644 --- a/ast.c +++ b/ast.c @@ -83,7 +83,7 @@ ast_parse_done(rb_ast_t *ast) * SyntaxError is raised if the given _string_ is invalid syntax. * * RubyVM::AbstractSyntaxTree.parse("x = 1 + 2") - * # => # + * # => # */ static VALUE rb_ast_s_parse(VALUE module, VALUE str) @@ -112,7 +112,7 @@ rb_ast_parse_str(VALUE str) * valid Ruby syntax. * * RubyVM::AbstractSyntaxTree.parse_file("my-app/app.rb") - * # => # + * # => # */ static VALUE rb_ast_s_parse_file(VALUE module, VALUE path) @@ -208,14 +208,14 @@ script_lines(VALUE path) * Returns AST nodes of the given _proc_ or _method_. * * RubyVM::AbstractSyntaxTree.of(proc {1 + 2}) - * # => # + * # => # * * def hello * puts "hello, world" * end * * RubyVM::AbstractSyntaxTree.of(method(:hello)) - * # => # + * # => # */ static VALUE rb_ast_s_of(VALUE module, VALUE body)