mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-10 00:44:21 +02:00
Fix typo
This commit is contained in:
parent
02e1f4b879
commit
6b8ee3c979
@ -18,7 +18,7 @@ fn main() {
|
||||
* `Option` and `Result` are widely used not just in the standard library.
|
||||
* `Option<&T>` has zero space overhead compared to `&T`.
|
||||
* `Result` is the standard type to implement error handling as we will see on Day 3.
|
||||
* `binary_search` returns `Result<usize, usize`.
|
||||
* `binary_search` returns `Result<usize, usize>`.
|
||||
* If found, `Result::Ok` holds the index where the element is found.
|
||||
* Otherwise, `Result::Err` contains the index where such an element should be inserted.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user