mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
uucore: mark comment as rustdoc
This commit is contained in:
parent
6af9fd784e
commit
1fcff25edc
1 changed files with 3 additions and 3 deletions
|
@ -222,9 +222,9 @@ pub fn read_yes() -> bool {
|
|||
}
|
||||
}
|
||||
|
||||
// Helper function for processing delimiter values (which could be non UTF-8)
|
||||
// It converts OsString to &[u8] for unix targets only
|
||||
// On non-unix (i.e. Windows) it will just return an error if delimiter value is not UTF-8
|
||||
/// Helper function for processing delimiter values (which could be non UTF-8)
|
||||
/// It converts OsString to &[u8] for unix targets only
|
||||
/// On non-unix (i.e. Windows) it will just return an error if delimiter value is not UTF-8
|
||||
pub fn os_str_as_bytes(os_string: &OsStr) -> mods::error::UResult<&[u8]> {
|
||||
#[cfg(unix)]
|
||||
let bytes = os_string.as_bytes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue