mirror of
https://github.com/sharkdp/bat
synced 2024-11-17 09:27:59 +00:00
Typo
This commit is contained in:
parent
3456ce1187
commit
64903bb858
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ fn is_truecolor_terminal() -> bool {
|
|||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
/// Helper function that should might appear in Rust stable at some point
|
||||
/// Helper function that might appear in Rust stable at some point
|
||||
/// (https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.transpose)
|
||||
fn transpose<T>(opt: Option<Result<T>>) -> Result<Option<T>> {
|
||||
opt.map_or(Ok(None), |res| res.map(Some))
|
||||
|
|
Loading…
Reference in a new issue