From 570e06520b81a107948d10fadaea89bd612b9a8d Mon Sep 17 00:00:00 2001 From: Brandon Weaver Date: Sun, 21 Apr 2024 15:38:43 -0700 Subject: [PATCH] `action.rb` doc fixes (#1008) Few sentence and formatting corrections --- lib/parser/source/tree_rewriter/action.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/parser/source/tree_rewriter/action.rb b/lib/parser/source/tree_rewriter/action.rb index 26cc02600..27002b572 100644 --- a/lib/parser/source/tree_rewriter/action.rb +++ b/lib/parser/source/tree_rewriter/action.rb @@ -6,9 +6,10 @@ module Source # @api private # # Actions are arranged in a tree and get combined so that: - # children are strictly contained by their parent - # sibblings all disjoint from one another and ordered - # only actions with replacement==nil may have children + # + # * Children are strictly contained by their parent + # * Siblings are all disjointed from one another and ordered + # * Only actions with `replacement == nil` may have children # class TreeRewriter::Action attr_reader :range, :replacement, :insert_before, :insert_after @@ -60,7 +61,7 @@ def insertion? ## # A root action has its range set to the whole source range, even - # though it typically do not act on that range. + # though it typically does not act on that range. # This method returns the action as if it was a child action with # its range contracted. # @return [Action]