From 9d927204e7b86eb00bfd07a060a6383139edf741 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Tue, 30 Nov 2021 16:27:12 +0900 Subject: error.c: Let Exception#inspect inspect its message ... only when the message string has a newline. `p StandardError.new("foo\nbar")` now prints `#' instead of: # [Bug #18170] --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index 83d90ff3a9..9c37d774b3 100644 --- a/string.c +++ b/string.c @@ -6376,7 +6376,7 @@ rb_str_reverse_bang(VALUE str) * */ -static VALUE +VALUE rb_str_include(VALUE str, VALUE arg) { long i; -- cgit v1.2.3