on master help sign in
Improve documentation for Input API
commita8d7141c4c157db30d60ed6dd55a6b2a763e5391 authorEthan P <eth-p+git@hidden.email> dateSat 16 May 2020, 15:18 (6 years ago) parent3eb704e
1 file changed+1−1
src/pretty_printer.rs+1−1
src/pretty_printer.rs+1−1
@@ -310,6 +310,7 @@ impl<'a> PrettyPrinter<'a> {
310310 }
311311}
312312
313+/// An input source for the pretty printer.
313314pub struct Input<'a> {
314315 input: BatInput<'a>,
315316}
@@ -343,7 +344,6 @@ impl<'a> Input<'a> {
343344 }
344345
345346 /// The description for the type of input (e.g. "File")
346− /// This defaults to "File" for files, and nothing for other inputs.
347347 pub fn kind(mut self, kind: impl Into<String>) -> Self {
348348 let kind = kind.into();
349349 self.input