Skip to content

Commit

Permalink
[3.13] gh-121355: Fix incorrect word in simple_stmts.rst (GH-121356) (#…
Browse files Browse the repository at this point in the history
…121362)

(cherry picked from commit 715ec63)

Co-authored-by: Jongbum Won <71166964+Wondaeng@users.noreply.github.com>
  • Loading branch information
miss-islington and Wondaeng authored Jul 4, 2024
1 parent 678fb82 commit 77ced76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/reference/simple_stmts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ statements, cannot be an unpacking) and the expression list, performs the binary
operation specific to the type of assignment on the two operands, and assigns
the result to the original target. The target is only evaluated once.

An augmented assignment expression like ``x += 1`` can be rewritten as ``x = x +
An augmented assignment statement like ``x += 1`` can be rewritten as ``x = x +
1`` to achieve a similar, but not exactly equal effect. In the augmented
version, ``x`` is only evaluated once. Also, when possible, the actual operation
is performed *in-place*, meaning that rather than creating a new object and
Expand Down

0 comments on commit 77ced76

Please sign in to comment.