Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation tweak
Browse files Browse the repository at this point in the history
mildm8nnered committed Jul 26, 2024

Verified

This commit was signed with the committer’s verified signature.
ScottGibb Scott Gibb
1 parent 65fcabb commit bdd113e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit bdd113e

Please sign in to comment.