[前][次][番号順一覧][スレッド一覧]

ruby-changes:49543

From: stomar <ko1@a...>
Date: Mon, 8 Jan 2018 02:49:50 +0900 (JST)
Subject: [ruby-changes:49543] stomar:r61658 (trunk): lib/scanf.rb: [DOC] fix typos

stomar	2018-01-08 02:49:46 +0900 (Mon, 08 Jan 2018)

  New Revision: 61658

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61658

  Log:
    lib/scanf.rb: [DOC] fix typos

  Modified files:
    trunk/lib/scanf.rb
Index: lib/scanf.rb
===================================================================
--- lib/scanf.rb	(revision 61657)
+++ lib/scanf.rb	(revision 61658)
@@ -13,7 +13,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/scanf.rb#L13
 # scanf is an implementation of the C function scanf(3), modified as necessary
 # for Ruby compatibility.
 #
-# the methods provided are String#scanf, IO#scanf, and
+# The methods provided are String#scanf, IO#scanf, and
 # Kernel#scanf. Kernel#scanf is a wrapper around STDIN.scanf.  IO#scanf
 # can be used on any IO stream, including file handles and sockets.
 # scanf can be called either with or without a block.
@@ -31,8 +31,8 @@ https://github.com/ruby/ruby/blob/trunk/lib/scanf.rb#L31
 # the conversions themselves are returned as an array.
 #
 # The format string may also contain characters other than those in the
-# conversion specifiers.  White space (blanks, tabs, or newlines) in the
-# format string matches any amount of white space, including none, in
+# conversion specifiers.  Whitespace (blanks, tabs, or newlines) in the
+# format string matches any amount of whitespace, including none, in
 # the input.  Everything else matches only itself.
 #
 # Scanning stops, and scanf returns, when any input character fails to
@@ -80,7 +80,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/scanf.rb#L80
 # see below).  Otherwise, given a field width of <em>n</em> for a given
 # conversion, at most <em>n</em> characters are scanned in processing
 # that conversion.  Before conversion begins, most conversions skip
-# white space in the input string; this white space is not counted
+# whitespace in the input string; this whitespace is not counted
 # against the field width.
 #
 # The following conversions are available.
@@ -113,17 +113,17 @@ https://github.com/ruby/ruby/blob/trunk/lib/scanf.rb#L113
 #
 # [s]
 #   Matches a sequence of non-white-space character. The input string stops at
-#   white space or at the maximum field width, whichever occurs first.
+#   whitespace or at the maximum field width, whichever occurs first.
 #
 # [c]
 #   Matches a single character, or a sequence of <em>n</em> characters if a
 #   field width of <em>n</em> is specified. The usual skip of leading white
-#   space is suppressed. To skip white space first, use an explicit space in
+#   space is suppressed. To skip whitespace first, use an explicit space in
 #   the format.
 #
 # [[]
 #   Matches a nonempty sequence of characters from the specified set
-#   of accepted characters.  The usual skip of leading white space is
+#   of accepted characters.  The usual skip of leading whitespace is
 #   suppressed.  This bracketed sub-expression is interpreted exactly like a
 #   character class in a Ruby regular expression.  (In fact, it is placed as-is
 #   in a regular expression.)  The matching against the input string ends with

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]