update docs to reflect new StorePath::new syntax

This commit is contained in:
do butterflies cry? 2026-04-13 20:29:54 +10:00
parent 0cc0b69dc6
commit 642fe57408
Signed by: cry
GPG key ID: F68745A836CA0412

View file

@ -79,8 +79,8 @@ impl StorePath {
/// use nixide::{Store, StorePath};
///
/// fn main() {
/// let store_ref = Store::default().unwrap();
/// let path = StorePath::new("/nix/store/f7gmvzd74wc1vlxzjdqy0af2381g8wr6-nix-manual-2.31.2-man").unwrap();
/// let storeref = Store::default().unwrap();
/// let path = StorePath::new(storeref, "/nix/store/f7gmvzd74wc1vlxzjdqy0af2381g8wr6-nix-manual-2.31.2-man").unwrap();
/// }
/// ```
///