Skip to content

Commit

Permalink
fix typos in documentation comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zerbina committed Jul 27, 2023
1 parent 4195717 commit a0d3914
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/mir/mirpasses.nim
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ proc preventRvo(tree: MirTree, changes: var Changeset) =

# we don't need to consider defs or initializing assignments (``mnkInit``)
# here, because there it is guaranteed that the destination does not appear
# anwhere in the source expression
# anywhere in the source expression
# XXX: no fast-assignments should exist at this point, but currently they
# do
for i in search(tree, {mnkFastAsgn, mnkAsgn}):
Expand Down
2 changes: 1 addition & 1 deletion tests/assign/tin_place_construction.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ discard """
'''
"""

# assignments are always evluated left-to-right. Optimizing an assignment with
# assignments are always evaluated left-to-right. Optimizing an assignment with
# a constructed rvalue as the source into an in-place construction is
# allowed, as long as this doesn't lead to left-to-right evaluation order
# violations
Expand Down

0 comments on commit a0d3914

Please sign in to comment.