From 44a119e9f5d361d2bf84f6d4bff37d15f4e924e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=A3=E0=B8=A1=E0=B8=B1=E0=B8=99?= <2621122+RoBo-Inc@users.noreply.github.com> Date: Sat, 12 Oct 2024 02:39:34 +0700 Subject: [PATCH] Fix a mistake in docs (#356) * Fix a typo * Fix mistake in docs --- Sources/Parsing/ParserPrinters/Printing.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Parsing/ParserPrinters/Printing.swift b/Sources/Parsing/ParserPrinters/Printing.swift index 706a0c5267..b4a6298370 100644 --- a/Sources/Parsing/ParserPrinters/Printing.swift +++ b/Sources/Parsing/ParserPrinters/Printing.swift @@ -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.