Project

General

Profile

Bug #13190

[DOC] Fix error for escape sequences in string literals

Added by stomar (Marcus Stollsteimer) over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
[ruby-core:79418]

Description

Small change:

Backslash goes first in escape sequences, so it must be "any other character following a backslash is interpreted as ...", while the doc says "...followed by...".


Files

doc_literals.patch (496 Bytes) doc_literals.patch stomar (Marcus Stollsteimer), 02/03/2017 10:08 PM

Associated revisions

Revision 90fdfec1
Added by normal over 2 years ago

doc: Fix error for escape sequences in string literals

Backslash goes first in escape sequences, so it must be
"any other character following a backslash is interpreted as ...",
while the doc says "...followed by...".

Author: Marcus Stollsteimer sto.mar@web.de
[ruby-core:79418] [Bug #13190]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 57517
Added by normalperson (Eric Wong) over 2 years ago

doc: Fix error for escape sequences in string literals

Backslash goes first in escape sequences, so it must be
"any other character following a backslash is interpreted as ...",
while the doc says "...followed by...".

Author: Marcus Stollsteimer sto.mar@web.de
[ruby-core:79418] [Bug #13190]

Revision 57517
Added by normal over 2 years ago

doc: Fix error for escape sequences in string literals

Backslash goes first in escape sequences, so it must be
"any other character following a backslash is interpreted as ...",
while the doc says "...followed by...".

Author: Marcus Stollsteimer sto.mar@web.de
[ruby-core:79418] [Bug #13190]

Revision 57517
Added by normal over 2 years ago

doc: Fix error for escape sequences in string literals

Backslash goes first in escape sequences, so it must be
"any other character following a backslash is interpreted as ...",
while the doc says "...followed by...".

Author: Marcus Stollsteimer sto.mar@web.de
[ruby-core:79418] [Bug #13190]

Revision 3a87802b
Added by naruse (Yui NARUSE) over 2 years ago

merge revision(s) 57517: [Backport #13190]

    doc: Fix error for escape sequences in string literals

    Backslash goes first in escape sequences, so it must be
    "any other character following a backslash is interpreted as ...",
    while the doc says "...followed by...".

    Author: Marcus Stollsteimer <sto.mar@web.de>
    [ruby-core:79418] [Bug #13190]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 57895
Added by naruse (Yui NARUSE) over 2 years ago

merge revision(s) 57517: [Backport #13190]

doc: Fix error for escape sequences in string literals

Backslash goes first in escape sequences, so it must be
"any other character following a backslash is interpreted as ...",
while the doc says "...followed by...".

Author: Marcus Stollsteimer <sto.mar@web.de>
[ruby-core:79418] [Bug #13190]

Revision 26b9fb47
Added by nagachika (Tomoyuki Chikanaga) over 2 years ago

merge revision(s) 57517: [Backport #13190]

    doc: Fix error for escape sequences in string literals

    Backslash goes first in escape sequences, so it must be
    "any other character following a backslash is interpreted as ...",
    while the doc says "...followed by...".

    Author: Marcus Stollsteimer <sto.mar@web.de>
    [ruby-core:79418] [Bug #13190]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58032
Added by nagachika (Tomoyuki Chikanaga) over 2 years ago

merge revision(s) 57517: [Backport #13190]

doc: Fix error for escape sequences in string literals

Backslash goes first in escape sequences, so it must be
"any other character following a backslash is interpreted as ...",
while the doc says "...followed by...".

Author: Marcus Stollsteimer <sto.mar@web.de>
[ruby-core:79418] [Bug #13190]

Revision ed20b256
Added by usa (Usaku NAKAMURA) over 2 years ago

merge revision(s) 51871,51872,51874,51875,51876,51877,51878,57517: [Backport #13190]

    * doc/syntax/literals.rdoc (Strings): mention about ?a literal.

    literals.rdoc: fix typos

    * doc/syntax/literals.rdoc (Strings): fix typos.
    * doc/syntax/literals.rdoc (Strings): [DOC] Document the full list
      of supported escape sequences in string literals.

    * doc/syntax/literals.rdoc (Strings): [DOC] Revise the character
      literal part.

    literals.rdoc: add DEL [ci skip]

    * doc/syntax/literals.rdoc (Strings): [DOC] add DEL.
    [DOC] `\0` is interpreted as NUL only if not followed by an octal digit.
    [DOC] Remove `\0` since it's aprt of octal notation

    A typo is fixed while at it.
    doc: Fix error for escape sequences in string literals

    Backslash goes first in escape sequences, so it must be
    "any other character following a backslash is interpreted as ...",
    while the doc says "...followed by...".

    Author: Marcus Stollsteimer <sto.mar@web.de>
    [ruby-core:79418] [Bug #13190]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58114
Added by usa (Usaku NAKAMURA) over 2 years ago

merge revision(s) 51871,51872,51874,51875,51876,51877,51878,57517: [Backport #13190]

* doc/syntax/literals.rdoc (Strings): mention about ?a literal.

literals.rdoc: fix typos

* doc/syntax/literals.rdoc (Strings): fix typos.
* doc/syntax/literals.rdoc (Strings): [DOC] Document the full list
  of supported escape sequences in string literals.

* doc/syntax/literals.rdoc (Strings): [DOC] Revise the character
  literal part.

literals.rdoc: add DEL [ci skip]

* doc/syntax/literals.rdoc (Strings): [DOC] add DEL.
[DOC] `\0` is interpreted as NUL only if not followed by an octal digit.
[DOC] Remove `\0` since it's aprt of octal notation

A typo is fixed while at it.
doc: Fix error for escape sequences in string literals

Backslash goes first in escape sequences, so it must be
"any other character following a backslash is interpreted as ...",
while the doc says "...followed by...".

Author: Marcus Stollsteimer <sto.mar@web.de>
[ruby-core:79418] [Bug #13190]

History

#1

Updated by Anonymous over 2 years ago

  • Status changed from Open to Closed

Applied in changeset r57517.


doc: Fix error for escape sequences in string literals

Backslash goes first in escape sequences, so it must be
"any other character following a backslash is interpreted as ...",
while the doc says "...followed by...".

Author: Marcus Stollsteimer sto.mar@web.de
[ruby-core:79418] [Bug #13190]

Updated by naruse (Yui NARUSE) over 2 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: DONE

ruby_2_4 r57895 merged revision(s) 57517.

Updated by nagachika (Tomoyuki Chikanaga) over 2 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: DONE to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONE

Updated by nagachika (Tomoyuki Chikanaga) over 2 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONE to 2.2: REQUIRED, 2.3: DONE, 2.4: DONE

ruby_2_3 r58032 merged revision(s) 57517.

Updated by usa (Usaku NAKAMURA) over 2 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: DONE, 2.4: DONE to 2.2: DONE, 2.3: DONE, 2.4: DONE

ruby_2_2 r58114 merged revision(s) 51871,51872,51874,51875,51876,51877,51878,57517.

Also available in: Atom PDF