Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Sources/RegexBuilder/Algorithms.swift
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ where Self: BidirectionalCollection, SubSequence == Substring {
/// the regex.
/// - maxReplacements: A number specifying how many occurrences of
/// the regex to replace.
/// - content: A closure that returns the collection to search for
/// - content: A closure that returns the regex to search for
/// and replace.
/// - Returns: A new collection in which all matches for regex in `subrange`
/// are replaced by `replacement`, using `content` to create the regex.
Expand All @@ -208,7 +208,7 @@ where Self: BidirectionalCollection, SubSequence == Substring {
/// each match for the regex, using `content` to create the regex.
/// - maxReplacements: A number specifying how many occurrences of regex
/// to replace.
/// - content: A closure that returns the collection to search for
/// - content: A closure that returns the regex to search for
/// and replace.
/// - Returns: A new collection in which all matches for regex in `subrange`
/// are replaced by `replacement`, using `content` to create the regex.
Expand All @@ -229,7 +229,7 @@ where Self: BidirectionalCollection, SubSequence == Substring {
/// each match for the regex, using `content` to create the regex.
/// - maxReplacements: A number specifying how many occurrences of
/// the regex to replace.
/// - content: A closure that returns the collection to search for
/// - content: A closure that returns the regex to search for
/// and replace.
@available(SwiftStdlib 5.7, *)
public mutating func replace<Replacement: Collection>(
Expand All @@ -249,7 +249,7 @@ where Self: BidirectionalCollection, SubSequence == Substring {
/// regex, using `content` to create the regex.
/// - maxReplacements: A number specifying how many occurrences of
/// the regex to replace.
/// - content: A closure that returns the collection to search for
/// - content: A closure that returns the regex to search for
/// and replace.
/// - replacement: A closure that receives the full match information,
/// including captures, and returns a replacement collection.
Expand All @@ -273,7 +273,7 @@ where Self: BidirectionalCollection, SubSequence == Substring {
/// - Parameters:
/// - maxReplacements: A number specifying how many occurrences of
/// the regex to replace, using `content` to create the regex.
/// - content: A closure that returns the collection to search for
/// - content: A closure that returns the regex to search for
/// and replace.
/// - replacement: A closure that receives the full match information,
/// including captures, and returns a replacement collection.
Expand All @@ -295,7 +295,7 @@ where Self: BidirectionalCollection, SubSequence == Substring {
/// - Parameters:
/// - maxReplacements: A number specifying how many occurrences of
/// the regex to replace, using `content` to create the regex.
/// - content: A closure that returns the collection to search for
/// - content: A closure that returns the regex to search for
/// and replace.
/// - replacement: A closure that receives the full match information,
/// including captures, and returns a replacement collection.
Expand Down