From a8d7141c4c157db30d60ed6dd55a6b2a763e5391 Mon Sep 17 00:00:00 2001 From: Ethan P Date: Sat, 16 May 2020 15:18:30 -0700 Subject: [PATCH] Improve documentation for Input API --- src/pretty_printer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretty_printer.rs b/src/pretty_printer.rs index 2a1c98ab..73483acf 100644 --- a/src/pretty_printer.rs +++ b/src/pretty_printer.rs @@ -310,6 +310,7 @@ impl<'a> PrettyPrinter<'a> { } } +/// An input source for the pretty printer. pub struct Input<'a> { input: BatInput<'a>, } @@ -343,7 +344,6 @@ impl<'a> Input<'a> { } /// The description for the type of input (e.g. "File") - /// This defaults to "File" for files, and nothing for other inputs. pub fn kind(mut self, kind: impl Into) -> Self { let kind = kind.into(); self.input