Skip to content

Commit cbc6738

Browse files
amartini51natecook1000
authored andcommitted
Fix abstract for Regex.dotMatchesNewlines(_:). (swiftlang#614)
The old version looks like it was accidentally duplicated from anchorsMatchLineEndings(_:) just below it.
1 parent e535778 commit cbc6738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/_StringProcessing/Regex/Options.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ extension Regex {
6868
wrapInOption(.unicodeWordBoundaries, addingIf: wordBoundaryKind == .default)
6969
}
7070

71-
/// Returns a regular expression where the start and end of input
72-
/// anchors (`^` and `$`) also match against the start and end of a line.
71+
/// Returns a regular expression where the "any" metacharacter (`.`)
72+
/// also matches against the start and end of a line.
7373
///
7474
/// - Parameter dotMatchesNewlines: A Boolean value indicating whether `.`
7575
/// should match a newline character.

0 commit comments

Comments
 (0)