From 8679cf2063e149e394ed55e41ddfe3dad8de6115 Mon Sep 17 00:00:00 2001 From: tomoat Date: Fri, 11 Feb 2022 16:13:37 +0800 Subject: [PATCH 1/2] Update function.md --- book/contents/basic/base-type/function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/contents/basic/base-type/function.md b/book/contents/basic/base-type/function.md index 2797f72a..793c2277 100644 --- a/book/contents/basic/base-type/function.md +++ b/book/contents/basic/base-type/function.md @@ -162,7 +162,7 @@ error[E0308]: mismatched types // 类型不匹配 ##### 永不返回的函数`!` -感叹号,当用作函数返回值的时候,表示该函数永不返回,特别的,这种语法往往用做会导致程序崩溃的函数: +当用`!`作函数返回类型的时候,表示该函数永不返回,特别的,这种语法往往用做会导致程序崩溃的函数: ```rust fn dead_end() -> ! { From f59be3327cd0c90deac66fb823208c072f9c8c45 Mon Sep 17 00:00:00 2001 From: tomoat Date: Fri, 11 Feb 2022 16:14:17 +0800 Subject: [PATCH 2/2] Update function.md --- book/contents/basic/base-type/function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/contents/basic/base-type/function.md b/book/contents/basic/base-type/function.md index 793c2277..67d1db9d 100644 --- a/book/contents/basic/base-type/function.md +++ b/book/contents/basic/base-type/function.md @@ -162,7 +162,7 @@ error[E0308]: mismatched types // 类型不匹配 ##### 永不返回的函数`!` -当用`!`作函数返回类型的时候,表示该函数永不返回,特别的,这种语法往往用做会导致程序崩溃的函数: +当用 `!` 作函数返回类型的时候,表示该函数永不返回,特别的,这种语法往往用做会导致程序崩溃的函数: ```rust fn dead_end() -> ! {