From 41d8dcbfb07591cb9b75f501db40c80cd69c60bc Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Tue, 4 Dec 2018 18:43:06 +0100 Subject: [PATCH] Fix documentation for Warning.warn Warning.warn does not add any newlines to the message argument. --- 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 -- 2.17.2 (Apple Git-113)