Skip to content

Commit d429db6

Browse files
methaneCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 14e32c7 commit d429db6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

peps/pep-0822.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ Ruby also has `"squiggly" heredoc <https://ruby-doc.org/core-2.5.0/doc/syntax/li
335335
that removes indent from lines in heredoc.
336336

337337
Perl has `"Indented Here-documents <https://perldoc.perl.org/perl5260delta#Indented-Here-documents>`__
338-
since Perl 5.26 too.
338+
since Perl 5.26 as well.
339339

340340
Java, Julia, and Ruby uses the least-indented line to determine the amount of
341341
indentation to be removed.
342-
Swift, C#, PHP, and Perl uses the indentation of the closing triple quotes or
342+
Swift, C#, PHP, and Perl use the indentation of the closing triple quotes or
343343
closing marker.
344344

345345

@@ -482,7 +482,7 @@ Since closing quotes can be on the same line as content, it looks symmetrical
482482
to allow content right after opening quotes too.
483483
And it would make it easier to rewrite existing ``"""`` to d-strings.
484484

485-
On the other hand, it increase the number of syntax rules that readers need to
485+
On the other hand, it increases the number of syntax rules that readers need to
486486
remember in order to understand how much indentation will be removed.
487487

488488
Also, allowing content after opening quotes would not resolve the usability
@@ -491,7 +491,7 @@ issue where existing ``textwrap.dedent("""...""")`` users must write
491491
Julia avoids this issue by removing the first newline when starting with
492492
``"""<newline>``, but this adds another syntax rule that users need to remember.
493493

494-
Since we rejected the idea of using ``__future__ import``, we prioritized
494+
Since we rejected the idea of using a ``__future__`` import, we prioritized
495495
ease of use for users rewriting from ``textwrap.dedent()`` or those who
496496
wanted to use ``textwrap.dedent()`` but couldn't for some reason, over
497497
the ease of rewriting existing multiline string literal users to d-strings.

0 commit comments

Comments
 (0)