Skip to content

More updates for algorithms proposal #324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 23, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update documentation parameters
  • Loading branch information
natecook1000 committed Apr 22, 2022
commit 3010ca7a92a048b774276b0ef91e076a1757df2e
4 changes: 2 additions & 2 deletions Documentation/Evolution/StringProcessingAlgorithms.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,12 @@ extension BidirectionalCollection where SubSequence == Substring {
public func firstMatch<R: RegexComponent>(of regex: R) -> Regex<R.RegexOutput>.Match?

/// Match a regex in its entirety.
/// - Parameter r: The regex to match against.
/// - Parameter regex: The regex to match against.
/// - Returns: The match if there is one, or `nil` if none.
public func wholeMatch<R: RegexComponent>(of regex: R) -> Regex<R.RegexOutput>.Match?

/// Match part of the regex, starting at the beginning.
/// - Parameter r: The regex to match against.
/// - Parameter regex: The regex to match against.
/// - Returns: The match if there is one, or `nil` if none.
public func prefixMatch<R: RegexComponent>(of regex: R) -> Regex<R.RegexOutput>.Match?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the doc comment for r to be regex.

}
Expand Down