Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
SupperZum committed Apr 9, 2024
1 parent 05ac4a4 commit a976bd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions module/core/proper_path_tools/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,16 +319,16 @@ pub( crate ) mod private
/// use proper_path_tools::path::ext;
///
/// let path = "/path/to/file.txt";
/// let extension = ext(path);
/// assert_eq!(extension, "txt");
/// let extension = ext( path );
/// assert_eq!( extension, "txt" );
/// ```
///
/// ```
/// use proper_path_tools::path::ext;
///
/// let empty_path = "";
/// let extension = ext(empty_path);
/// assert_eq!(extension, "");
/// let extension = ext( empty_path );
/// assert_eq!( extension, "" );
/// ```
///
pub fn ext( path : impl AsRef< std::path::Path > ) -> String
Expand Down

0 comments on commit a976bd1

Please sign in to comment.