summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-05 01:19:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-05 01:19:23 +0000
commit8748fe7cf0f9f0f0b5d58a58db1d13fd63dba39a (patch)
treeb7db5df02e68ca6b656d482de4a425f913183e2e /error.c
parente7fad40cf268db5b025eb50398b7861492953b16 (diff)
Fix documentation for Warning.warn [ci skip]
Warning.warn does not add any newlines to the message argument. [Bug #15379] From: Olle Jonsson <olle.jonsson@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c5
1 files 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