summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-12-12 01:59:57 +0000
committerJohn Turner <jturner.usa@gmail.com>2025-12-14 01:37:49 +0000
commita09241dc8940d0a9b01a698d3e71d08f71fadea4 (patch)
tree99e2a6e378c03fe133366faa101352cda1df0248 /src/lib.rs
parent682cfdac9f88b614f502c6352d72a051b6de9440 (diff)
downloadgentoo-utils-a09241dc8940d0a9b01a698d3e71d08f71fadea4.tar.gz
read repo_name when opening repos
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b7b01a7..66cf2b9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -69,7 +69,8 @@ pub mod atom;
/// ```
/// use gentoo_utils::repo::Repo;
///
-/// let repo = Repo::new("/var/db/repos/gentoo");
+/// let repo = Repo::new("/var/db/repos/gentoo")
+/// .expect("failed to open repo");
///
/// for result in repo.categories().expect("failed to read categories") {
/// let category = result.expect("failed to read category");