1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #3643 from cakebaker/fix_invalid_enum_variant_in_docstring

uucore: fix invalid enum variant in docstring
This commit is contained in:
Sylvestre Ledru 2022-06-17 10:31:29 +02:00 committed by GitHub
commit fa51f8b986
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,8 +189,8 @@ impl ConversionResult {
pub trait Args: Iterator<Item = OsString> + Sized { pub trait Args: Iterator<Item = OsString> + Sized {
/// Converts each iterator item to a String and collects these into a vector /// Converts each iterator item to a String and collects these into a vector
/// On invalid encoding, the result will depend on the argument. This method allows to either drop entries with illegal encoding /// On invalid encoding, the result will depend on the argument. This method allows to either drop entries with illegal encoding
/// completely (```InvalidEncodingHandling::Ignore```), convert them using lossy-conversion (```InvalidEncodingHandling::Lossy```) which will /// completely (```InvalidEncodingHandling::Ignore```), convert them using lossy-conversion (```InvalidEncodingHandling::ConvertLossy```)
/// result in strange strings or can chosen to panic (```InvalidEncodingHandling::Panic```). /// which will result in strange strings or can chosen to panic (```InvalidEncodingHandling::Panic```).
/// # Arguments /// # Arguments
/// * `handling` - This switch allows to switch the behavior, when invalid encoding is encountered /// * `handling` - This switch allows to switch the behavior, when invalid encoding is encountered
/// # Panics /// # Panics