From e442489cf6d9b31a67aea1898853bf0a26568c18 Mon Sep 17 00:00:00 2001 From: "Ryan T. Hosford" Date: Fri, 30 Apr 2021 09:16:31 -0500 Subject: [PATCH] Correction to docs for #to_sentence, :words_connector --- .../lib/active_support/core_ext/array/conversions.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb index ea688ed2ea..c934189e1e 100644 --- a/activesupport/lib/active_support/core_ext/array/conversions.rb +++ b/activesupport/lib/active_support/core_ext/array/conversions.rb @@ -16,12 +16,12 @@ class Array # # ==== Options # - # * :words_connector - The sign or word used to join the elements - # in arrays with two or more elements (default: ", "). - # * :two_words_connector - The sign or word used to join the elements - # in arrays with two elements (default: " and "). + # * :words_connector - The sign or word used to join all but the last + # element in arrays with three or more elements (default: ", "). # * :last_word_connector - The sign or word used to join the last element # in arrays with three or more elements (default: ", and "). + # * :two_words_connector - The sign or word used to join the elements + # in arrays with two elements (default: " and "). # * :locale - If +i18n+ is available, you can set a locale and use # the connector options defined on the 'support.array' namespace in the # corresponding dictionary file.