From b0bdce537059d0bd8bf791a3f34407e7d3ec1a32 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 28 Nov 2023 19:26:44 -0500 Subject: [PATCH] GH-38940: [Ruby] Fix spelling (#38941) ### Rationale for this change ### What changes are included in this PR? Spelling fixes to ruby/ ### Are these changes tested? ### Are there any user-facing changes? * Closes: #38940 Authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Signed-off-by: Sutou Kouhei --- ruby/red-arrow/lib/arrow/array.rb | 2 +- ruby/red-arrow/lib/arrow/sort-key.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ruby/red-arrow/lib/arrow/array.rb b/ruby/red-arrow/lib/arrow/array.rb index e7ca5606761f2..2c5e5cf2754eb 100644 --- a/ruby/red-arrow/lib/arrow/array.rb +++ b/ruby/red-arrow/lib/arrow/array.rb @@ -250,7 +250,7 @@ def resolve(other_array) "[array][resolve] need to implement " + "a feature that building #{value_data_type} array " + "from raw Ruby Array" - raise NotImpelemented, message + raise NotImplemented, message end other_array elsif other_array.respond_to?(:value_data_type) diff --git a/ruby/red-arrow/lib/arrow/sort-key.rb b/ruby/red-arrow/lib/arrow/sort-key.rb index 7ceab631ea23c..e1df50ebb7c68 100644 --- a/ruby/red-arrow/lib/arrow/sort-key.rb +++ b/ruby/red-arrow/lib/arrow/sort-key.rb @@ -79,9 +79,9 @@ def try_convert(value) # target and corresponding order is used. `"+"` uses ascending # order and `"-"` uses ascending order. # - # If `target` is not a String nor `target` doesn't start with the - # leading order mark, sort column target is `target` as-is and - # ascending order is used. + # If `target` is either not a String or `target` doesn't start + # with the leading order mark, sort column is `target` as-is + # and ascending order is used. # # @example String without the leading order mark # key = Arrow::SortKey.new("count")