remove undesirable default values

This commit is contained in:
Guillaume Lessard committed 2024-07-16 13:30:29 -07:00
1 parent c611501b0a
commit 296f94c2d8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -546,7 +546,7 @@ extension RawSpan {
///
/// - Complexity: O(1)
@inlinable
public func extracting(droppingFirst k: Int = 1) -> Self {
public func extracting(droppingFirst k: Int) -> Self {
precondition(k >= 0, "Can't drop a negative number of elements.")
let dc = min(k, byteCount)
let newStart = _pointer?.advanced(by: dc)
+1 -1
View File
@@ -757,7 +757,7 @@ extension Span where Element: ~Copyable /*& ~Escapable*/ {
///
/// - Complexity: O(1)
@inlinable
public func extracting(droppingFirst k: Int = 1) -> Self {
public func extracting(droppingFirst k: Int) -> Self {
precondition(k >= 0, "Can't drop a negative number of elements.")
let droppedCount = min(k, count)
let newStart = _pointer?.advanced(by: droppedCount)