From bdd113ef9cb0476b714b2ef51d281dbfa75abf7f Mon Sep 17 00:00:00 2001 From: Martin Redington Date: Fri, 26 Jul 2024 12:24:12 +0100 Subject: [PATCH] Documentation tweak --- Source/SwiftLintBuiltInRules/Rules/Lint/ArrayInitRule.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SwiftLintBuiltInRules/Rules/Lint/ArrayInitRule.swift b/Source/SwiftLintBuiltInRules/Rules/Lint/ArrayInitRule.swift index 70fc0151e53..566cbf63124 100644 --- a/Source/SwiftLintBuiltInRules/Rules/Lint/ArrayInitRule.swift +++ b/Source/SwiftLintBuiltInRules/Rules/Lint/ArrayInitRule.swift @@ -10,7 +10,7 @@ struct ArrayInitRule: OptInRule { description: "Prefer using `Array(seq)` over `seq.map { $0 }` to convert a sequence into an Array", rationale: """ When converting a the elements of sequence directly into an `Array`, for clarity and to better convey \ - intent, prefer using the `Array` constructor to `map`. For example + intent, prefer using the `Array` constructor over calling `map`. For example ``` Array(foo)