From 19b483a9051880b9e2cf6336a905e2d0fb10a157 Mon Sep 17 00:00:00 2001 From: CamaroW <111119365+CamaroW@users.noreply.github.com> Date: Wed, 1 Jan 2025 13:22:30 +0800 Subject: [PATCH] Update function.md Changed "diverge function" to "diverging functions". Refer to "https://web.mit.edu/rust-lang_v1.26.0/arch/amd64_ubuntu1404/share/doc/rust/html/rust-by-example/fn/diverging.html#:~:text=Diverging%20functions%20never%20return.,which%20is%20an%20empty%20type.&text=As%20opposed%20to%20all%20the,has%20exactly%20one%20possible%20value." --- src/basic/base-type/function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/base-type/function.md b/src/basic/base-type/function.md index 3d205c70..7f62a2b7 100644 --- a/src/basic/base-type/function.md +++ b/src/basic/base-type/function.md @@ -172,7 +172,7 @@ error[E0308]: mismatched types // 类型不匹配 ##### 永不返回的发散函数 `!` -当用 `!` 作函数返回类型的时候,表示该函数永不返回( diverge function ),特别的,这种语法往往用做会导致程序崩溃的函数: +当用 `!` 作函数返回类型的时候,表示该函数永不返回( diverging functions ),特别的,这种语法往往用做会导致程序崩溃的函数: ```rust fn dead_end() -> ! {