Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c456d36

Browse files
committed
Fix encoding of \ in some string literals in the discussion of "raw"
strings. Reported by Lorenzo M. Catucci <[email protected]>.
1 parent 8238587 commit c456d36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/ref/ref2.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ \subsection{String literals\label{strings}}
350350
the string}. For example, the string literal \code{r"\e n"} consists
351351
of two characters: a backslash and a lowercase `n'. String quotes can
352352
be escaped with a backslash, but the backslash remains in the string;
353-
for example, \code{r"\""} is a valid string literal consisting of two
354-
characters: a backslash and a double quote; \code{r"\"} is not a value
353+
for example, \code{r"\e""} is a valid string literal consisting of two
354+
characters: a backslash and a double quote; \code{r"\e"} is not a value
355355
string literal (even a raw string cannot end in an odd number of
356356
backslashes). Specifically, \emph{a raw string cannot end in a single
357357
backslash} (since the backslash would escape the following quote

0 commit comments

Comments
 (0)