From 8748fe7cf0f9f0f0b5d58a58db1d13fd63dba39a Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 5 Dec 2018 01:19:23 +0000 Subject: [PATCH] Fix documentation for Warning.warn [ci skip] Warning.warn does not add any newlines to the message argument. [Bug #15379] From: Olle Jonsson git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/error.c b/error.c index 8e97f4919d..b4ba64b57a 100644 --- a/error.c +++ b/error.c @@ -147,9 +147,8 @@ ruby_deprecated_internal_feature(const char *func) * call-seq: * warn(msg) -> nil * - * Writes warning message +msg+ to $stderr, followed by a newline - * if the message does not end in a newline. This method is called - * by Ruby for all emitted warnings. + * Writes warning message +msg+ to $stderr. This method is called by + * Ruby for all emitted warnings. */ static VALUE