kodecocodes / swift-algorithm-club

Algorithms and data structures in Swift, with explanations!
MIT License
28.85k stars 5k forks source link

fixes label-less method parameter #979

Closed MartinP7r closed 2 years ago

MartinP7r commented 3 years ago

The following code samples all use append(_:) without the value: label and since Swift 3 (https://github.com/apple/swift-evolution/blob/master/proposals/0046-first-label.md) this has to be implemented with a preceding _ in the function signature.

Checklist

Description

This is an update to one of the source code samples.
Your README.md states compatibility with Swift4.2, so this change from Swift 3 is warranted, I hope. Feel free to deny the PR if I should have overlooked something.

iiicey commented 2 years ago

邮件已收到。我会尽快回复!祝您一切顺利!兰雨田