Skip to content

Commit

Permalink
stdlib: Fix documentation comments for Sequence.{dropFirst(),dropLast()}
Browse files Browse the repository at this point in the history
  • Loading branch information
gribozavr committed Dec 2, 2015
1 parent fed7f79 commit f431025
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stdlib/public/core/Sequence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -588,15 +588,13 @@ extension SequenceType where Generator.Element : Equatable {
extension SequenceType {
/// Returns a subsequence containing all but the first element.
///
/// - Requires: `n >= 0`
/// - Complexity: O(`n`)
/// - Complexity: O(1)
@warn_unused_result
public func dropFirst() -> SubSequence { return dropFirst(1) }

/// Returns a subsequence containing all but the last element.
///
/// - Requires: `self` is a finite sequence.
/// - Requires: `n >= 0`
/// - Complexity: O(`self.count`)
@warn_unused_result
public func dropLast() -> SubSequence { return dropLast(1) }
Expand Down

0 comments on commit f431025

Please sign in to comment.