aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-26 20:09:34 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-26 20:09:34 +0000
commit97988a8c065a031fc1780ee992790730ec43e02a (patch)
treea0d695e4d2d4f56bb82ed4a37b3002f4216a71b6 /error.c
parentc0aaf03e125fbf4fe6a73eb3b3ee2f2ee084a48b (diff)
downloadruby-97988a8c065a031fc1780ee992790730ec43e02a.tar.gz
error.c: improve docs
* error.c: [DOC] fix rdoc formatting (make sure `Warning.warn' is displayed verbatim; rdoc would render it as a link named `#warn'), use capitalized "Ruby", fix a typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/error.c b/error.c
index 6603ee075b..6ec37f6273 100644
--- a/error.c
+++ b/error.c
@@ -138,11 +138,11 @@ ruby_deprecated_internal_feature(const char *func)
/*
* call-seq:
- * warn(msg) -> nil
+ * warn(msg) -> nil
*
- * Writes warning message to $stderr, followed by a newline
+ * 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.
+ * by Ruby for all emitted warnings.
*/
static VALUE
@@ -158,16 +158,15 @@ rb_warning_s_warn(VALUE mod, VALUE str)
* Document-module: Warning
*
* The Warning module contains a single method named #warn, and the
- * module extends itself, making Warning.warn available.
- * Warning.warn is called for all warnings issued by ruby.
+ * module extends itself, making <code>Warning.warn</code> available.
+ * Warning.warn is called for all warnings issued by Ruby.
* By default, warnings are printed to $stderr.
*
* By overriding Warning.warn, you can change how warnings are
- * handled by ruby, either filtering some warnings, and/or outputing
+ * handled by Ruby, either filtering some warnings, and/or outputting
* warnings somewhere other than $stderr. When Warning.warn is
* overridden, super can be called to get the default behavior of
* printing the warning to $stderr.
- *
*/
VALUE
@@ -2017,7 +2016,7 @@ syserr_eqq(VALUE self, VALUE exc)
/*
* Document-class: fatal
*
- * fatal is an Exception that is raised when ruby has encountered a fatal
+ * fatal is an Exception that is raised when Ruby has encountered a fatal
* error and must exit. You are not able to rescue fatal.
*/