From 13942124495d5d2415b47dbd201a05615d262ec0 Mon Sep 17 00:00:00 2001 From: Chris AtLee Date: Wed, 6 Dec 2023 12:13:57 -0500 Subject: [PATCH] Fix DoubleStartEndWith example --- docs/modules/ROOT/pages/cops_performance.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/cops_performance.adoc b/docs/modules/ROOT/pages/cops_performance.adoc index 29dd534556..dcbebeea05 100644 --- a/docs/modules/ROOT/pages/cops_performance.adoc +++ b/docs/modules/ROOT/pages/cops_performance.adoc @@ -823,10 +823,11 @@ str.end_with?(var1, var2) [source,ruby] ---- -# good +# bad str.starts_with?("a", "b") || str.starts_with?("c") str.ends_with?(var1) || str.ends_with?(var2) +# good str.starts_with?("a", "b", "c") str.ends_with?(var1, var2) ----