Skip to content

Commit

Permalink
Fix TreeRewriter#transaction [DOC] (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Apr 11, 2020
1 parent fad6bd2 commit a2bda6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/parser/source/tree_rewriter.rb
Expand Up @@ -203,10 +203,9 @@ def process
##
# Provides a protected block where a sequence of multiple rewrite actions
# are handled atomically. If any of the actions failed by clobbering,
# all the actions are rolled back.
# all the actions are rolled back. Transactions can be nested.
#
# @raise [RuntimeError] when no block is passed
# @raise [RuntimeError] when already in a transaction
#
def transaction
unless block_given?
Expand Down

0 comments on commit a2bda6a

Please sign in to comment.