mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Improve documentation for Input API
This commit is contained in:
1 parent
3eb704e016
commit
a8d7141c4c
1 file changed
+1
-1
@@ -310,6 +310,7 @@ impl<'a> PrettyPrinter<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// An input source for the pretty printer.
|
||||||
pub struct Input<'a> {
|
pub struct Input<'a> {
|
||||||
input: BatInput<'a>,
|
input: BatInput<'a>,
|
||||||
}
|
}
|
||||||
@@ -343,7 +344,6 @@ impl<'a> Input<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The description for the type of input (e.g. "File")
|
/// 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<String>) -> Self {
|
pub fn kind(mut self, kind: impl Into<String>) -> Self {
|
||||||
let kind = kind.into();
|
let kind = kind.into();
|
||||||
self.input
|
self.input
|
||||||
|
|||||||
Reference in new issue
Block a user