Skip to content

Commit

Permalink
Merge pull request #184 from sadwx/patch-1
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
weihanglo authored Oct 25, 2023
2 parents f9438d0 + d6dcb7e commit b58cc42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch12-03-improving-error-handling-and-modularity.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Rust 告訴我們程式碼忽略了 `Result` 數值且 `Result` 數值可能代

哇!辛苦了,不過我們為未來的成功打下了基礎。現在處理錯誤就輕鬆多了,而且我們讓程式更模組化。現在幾乎所有的工作都會在 *src/lib.rs* 中進行。

讓我們利用這個新的模組化優勢來進行些原本在就程式碼會很難處理的工作,但在新的程式碼會變得非常容易,那就是寫些測試!
讓我們利用這個新的模組化優勢來進行些原本在舊程式碼會很難處理的工作,但在新的程式碼會變得非常容易,那就是寫些測試!

[ch13]: ch13-00-functional-features.html
[ch9-custom-types]: ch09-03-to-panic-or-not-to-panic.html#建立自訂型別來驗證
Expand Down

0 comments on commit b58cc42

Please sign in to comment.