Skip to content

Commit cbf942a

Browse files
committed
docstrings
1 parent ea99747 commit cbf942a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/cmd/orphans.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use crate::collection::Collection;
1818
use crate::error::Fallible;
1919
use crate::types::card_hash::CardHash;
2020

21+
/// Print the hashes of orphan cards.
2122
pub fn list_orphans(directory: Option<String>) -> Fallible<()> {
2223
let coll = Collection::new(directory)?;
2324
let orphans: Vec<CardHash> = get_orphans(&coll)?;
@@ -28,6 +29,7 @@ pub fn list_orphans(directory: Option<String>) -> Fallible<()> {
2829
Ok(())
2930
}
3031

32+
/// Delete orphan card data in the database.
3133
pub fn delete_orphans(directory: Option<String>) -> Fallible<()> {
3234
let mut coll = Collection::new(directory)?;
3335
let orphans: Vec<CardHash> = get_orphans(&coll)?;

0 commit comments

Comments
 (0)