docs: improve docs

This commit is contained in:
Michael Bøcker-Larsen 2020-12-21 11:21:40 +08:00
parent 8cd8a21008
commit b2f2e297c2
No known key found for this signature in database
GPG key ID: FEC5F9A03674F95A

View file

@ -110,7 +110,7 @@ impl<'a, T: Read + Write> AppendCmd<'a, T> {
self
}
/// Append an array of flags
/// Set multiple flags at once.
pub fn flags(&mut self, flags: impl IntoIterator<Item = Flag<'a>>) -> &mut Self {
self.flags.extend(flags);
self
@ -126,7 +126,10 @@ impl<'a, T: Read + Write> AppendCmd<'a, T> {
self
}
/// Run command
/// Finishes up the command and executes it.
///
/// Note: be sure to set flags and optional date before you
/// finish the command.
pub fn finish(&mut self) -> Result<()> {
let flagstr = self
.flags