Open
Description
Description
This is a documentation issue.
These APIs (and possibly others):
RangeReplaceableCollection.replacing(with:maxReplacements:content:
RangeReplaceableCollection.replacing(maxReplacements:content:with:)
RangeReplaceableCollection.replacing(with:subrange:maxReplacements:content)
RangeReplaceableCollection.replacing(subrange:maxReplacements:content:with:)
document their content
parameter as follows:
content
: A closure that returns the collection to search for and replace.
This should be "A closure that returns the regex to search for" or similar.
Reproduction
n/a
Expected behavior
n/a
Environment
$ swift --version
Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
$ xcodebuild -version
Xcode 15.4
Build version 15F31d
Additional information
No response