Skip to content

Commit c2a5958

Browse files
committed
Update ErrorHandling.md
1 parent 9724981 commit c2a5958

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

swift-6-beta.docc/LanguageGuide/ErrorHandling.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -705,11 +705,6 @@ do {
705705

706706
尽管上面的 `do`-`catch` 块没有指定它抛出的错误类型,Swift 仍会推断它抛出 `StatisticsError`
707707
您可以显式地编写 `throws(any Error)` 以避免让 Swift 推断出指定类型抛错。
708-
Even though the `do`-`catch` block above
709-
doesn't specify what type of error it throws,
710-
Swift infers that it throws `StatisticsError`.
711-
You can explicitly write `throws(any Error)`
712-
to avoid letting Swift infer typed throws.
713708

714709
## 指定清理操作
715710

0 commit comments

Comments
 (0)