Skip to content

Commit

Permalink
Fix a mistake in docs (#356)
Browse files Browse the repository at this point in the history
* Fix a typo

* Fix mistake in docs
  • Loading branch information
RoBo-Inc authored Oct 11, 2024
1 parent b23c636 commit 44a119e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Parsing/ParserPrinters/Printing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ extension Parser {
/// a single space:
///
/// ```swift
/// let spaces = Skip { Prefix { $0.isWhitespace } }.printing(" ")
/// let spaces = Skip { Prefix(while: \.isWhitespace) }.printing(" ")
///
/// var input = " 123"[...]
/// try spaces.parse(&input) // ()
/// input // "123"
///
/// spaces.print(to: &input)
/// input // "123 "
/// try spaces.print(into: &input)
/// input // " 123"
/// ```
///
/// - Parameter printer: A printer.
Expand Down

0 comments on commit 44a119e

Please sign in to comment.