Skip to content

Commit 520d0d2

Browse files
committed
Updated popLast() and removeLast() documentation.
1 parent ad827cc commit 520d0d2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stdlib/public/core/BidirectionalCollection.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ extension BidirectionalCollection where SubSequence == BidirectionalSlice<Self>
205205
extension BidirectionalCollection where SubSequence == Self {
206206
/// Removes and returns the last element of the collection.
207207
///
208-
/// `popLast()` should generally be preferred over `removeLast()`
209-
/// since it is safer to use.
208+
/// `popLast()` should generally be preferred over `removeLast()`.
210209
///
211210
/// You should only opt for `removeLast()` if you are certain the collection
212211
/// is not empty and performance is an issue.
@@ -228,7 +227,7 @@ extension BidirectionalCollection where SubSequence == Self {
228227
/// You should only use this if you are certain the collection
229228
/// is not empty and performance is an issue.
230229
///
231-
/// Otherwise opt for `popLast()` since it is safer.
230+
/// Otherwise opt for `popLast()`.
232231
///
233232
/// - Returns: The last element of the collection.
234233
///

0 commit comments

Comments
 (0)