Skip to content

Bad documentation of 'content' parameter in replacing(with:content:) Regex APIs #74008

Open
@ole

Description

@ole

Description

This is a documentation issue.

These APIs (and possibly others):

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.documentationstandard libraryArea: Standard library umbrella

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions