Skip to content

Commit

Permalink
Merge pull request #3818 from mbhall88/patch-1
Browse files Browse the repository at this point in the history
docs: update return signature for try_from_os_str
  • Loading branch information
epage committed Jun 14, 2022
2 parents 0c36710 + 52403cd commit 1ba6ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/derive_ref/README.md
Expand Up @@ -271,7 +271,7 @@ You can then support your custom type with `#[clap(parse(<kind> [= <function>]))
| `from_str` | `fn(&str) -> T` | `::std::convert::From::from` |
| `try_from_str` (default) | `fn(&str) -> Result<T, E>` | `::std::str::FromStr::from_str` |
| `from_os_str` | `fn(&OsStr) -> T` | `::std::convert::From::from` |
| `try_from_os_str` | `fn(&OsStr) -> Result<T, OsString>` | (no default function) |
| `try_from_os_str` | `fn(&OsStr) -> Result<T, E>` | (no default function) |
| `from_occurrences` | `fn(u64) -> T` | `value as T` |
| `from_flag` | `fn(bool) -> T` | `::std::convert::From::from` |

Expand Down

0 comments on commit 1ba6ef9

Please sign in to comment.