We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdbfc4f commit f1a2f22Copy full SHA for f1a2f22
stdlib/public/core/BidirectionalCollection.swift
@@ -225,7 +225,10 @@ extension BidirectionalCollection where SubSequence == Self {
225
226
/// Removes and returns the last element of the collection.
227
///
228
- /// The collection must not be empty.
+ /// You should only use this if you are certain the collection
229
+ /// is not empty and performance is an issue.
230
+ ///
231
+ /// Otherwise opt for popLast() since it is safer.
232
233
/// - Returns: The last element of the collection.
234
0 commit comments