Skip to content

Commit

Permalink
Remove redundant public modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
fcanas committed Mar 17, 2019
1 parent 0cec769 commit 8372b20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/FFCParserCombinator/FFCParserCombinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ public extension Parser {
}

/// Parses zero or more consecutive elements into an array
public var many: Parser<S,[A]> {
var many: Parser<S,[A]> {
return atLeast(0)
}

/// Parses one or more consecutive elements into an array
public var many1: Parser<S,[A]> {
var many1: Parser<S,[A]> {
return atLeast(1)
}

/// Parses `min` or more elements into an array
///
/// - Parameter min: the minimum number of elements to match
/// - Returns: A parser that matches the receiver at least `min` times.
public func atLeast(_ min: UInt) -> Parser<S,[A]> {
func atLeast(_ min: UInt) -> Parser<S,[A]> {
return from(min, upTo: nil)
}

Expand All @@ -53,7 +53,7 @@ public extension Parser {
/// - min: the minimum number of elements to match
/// - max: the maximum number of elements to match
/// - Returns: A parser that matches the receiver at least `min` times.
public func between(_ min: UInt, and max: UInt) -> Parser<S,[A]> {
func between(_ min: UInt, and max: UInt) -> Parser<S,[A]> {
return from(min, upTo: max)
}

Expand Down

0 comments on commit 8372b20

Please sign in to comment.