mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-23 23:50:25 +08:00
Spelling
This commit is contained in:
parent
fdc98f4bcb
commit
0cd5b91fec
@ -174,7 +174,7 @@ The Rust community has a love/hate relationship with `unwrap()` and `expect()`.
|
||||
They're very handy when prototyping, before you're ready to decide how to
|
||||
handle errors, and in that case they leave clear markers to look for when you
|
||||
are ready to make your program more robust. They're useful in tests since they
|
||||
will cause the test to fail if there's an error anyplace you call them. In
|
||||
will cause the test to fail if there's an error any place you call them. In
|
||||
examples, you might not want to muddy the code with proper error handling. But
|
||||
if you use them in a library, mis-using your library can cause other people's
|
||||
programs to halt unexpectedly, and that's not very user-friendly.
|
||||
|
Loading…
Reference in New Issue
Block a user