Actions
Bug #11746
closedRDoc incorrect example call method on heredoc
Description
The sample code for a call on a heredoc at http://ruby-doc.org/core-2.3.0_preview1/doc/syntax/literals_rdoc.html#label-Here+Documents
for
To call a method on a heredoc place it after the opening identifier:
I think it should be
expected_result = <<HEREDOC.chomp
One plus one is #{1 + 1}
HEREDOC
instead of
expected_result = "One plus one is #{1 + 1}
".chomp
Regards
Actions
Like0
Like0Like0Like0Like0Like0Like0