Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
wiiznokes committed Dec 15, 2023
1 parent 9093e11 commit a5a5a39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/resource-resolver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,18 @@ pub fn resource_dir_with_suffix(suffix: &str) -> Result<PathBuf> {
/// Warning: Having resource folders inside folders can create inconsistency.
///
/// Example: You want to include the folder `crate/resource/icons/`.
///
///
/// - With `cargo run` command, you will have to execute
/// `resource_dir().unwrap().join("resource/icons/")` to get the path.
/// - With any other formats, it will be `resource_dir().unwrap().join("icons/")`.
///
///
/// For this use case, you can use [`self::resource_dir_with_suffix`]
/// ```
/// use cargo_packager_resource_resolver::resource_dir_with_suffix;
///
///
/// resource_dir_with_suffix("resource").unwrap().join("icons/");
/// ```
///
///
pub fn resource_dir() -> Result<PathBuf> {
resource_dir_with_suffix("")
}

0 comments on commit a5a5a39

Please sign in to comment.