Skip to content

[SR-14611] The argument of hasSuffix that StringProtocol requires is currently wrongly named #56963

Closed
@swift-ci

Description

@swift-ci
Previous ID SR-14611
Radar None
Original Reporter ensan (JIRA User)
Type Bug
Status Closed
Resolution Done
Environment

Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
Target: x86_64-apple-darwin20.3.0

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee ensan (JIRA)
Priority Medium

md5: 6ee0dc96ce528d7b90a1423b9e29abc7

Issue Description:

The argument of hasSuffix that StringProtocol requires is currently wrongly named. It should be `suffix`.

https://github.com/apple/swift/blob/main/stdlib/public/core/StringProtocol.swift#L46

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions