From 32a078e84b7b2725253ef20edb50106123aa0a70 Mon Sep 17 00:00:00 2001 From: muxinqi Date: Sun, 5 Sep 2021 10:32:35 +0800 Subject: [PATCH] fix: syntax highlighting (#1167) For better reading experience XD --- source/02_language_guide/06_Functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/02_language_guide/06_Functions.md b/source/02_language_guide/06_Functions.md index 216929cd..b193f871 100755 --- a/source/02_language_guide/06_Functions.md +++ b/source/02_language_guide/06_Functions.md @@ -206,7 +206,7 @@ if let bounds = minMax(array: [8, -6, 2, 109, 3, 71]) { ### 隐式返回的函数 {#functions-with-an-implicit-return} 如果一个函数的整个函数体是一个单行表达式,这个函数可以隐式地返回这个表达式。举个例子,以下的函数有着同样的作用: -``` +```swift func greeting(for person: String) -> String { "Hello, " + person + "!" }