From 2e6ce0a10ef16e8c18e1eaef9182ab705ef06752 Mon Sep 17 00:00:00 2001 From: 246859 Date: Thu, 7 Aug 2025 23:40:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(#54):=20=E4=BF=AE=E5=A4=8D=E4=BA=86?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=BB=8B=E7=BB=8D=E9=94=99=E8=AF=AF=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E6=B7=BB=E5=8A=A0=E4=BA=86=E7=B4=A2=E5=BC=95=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E8=AF=AD=E6=B3=95=E7=9A=84=E4=BB=8B=E7=BB=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/essential/senior/105.reflect.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/essential/senior/105.reflect.md b/src/essential/senior/105.reflect.md index 3eb9e22c6..517147ad0 100644 --- a/src/essential/senior/105.reflect.md +++ b/src/essential/senior/105.reflect.md @@ -182,7 +182,9 @@ const ( ) ``` -`Kind`类型仅仅实现了`Stringer`接口的`String()`方法,该类型也仅有这一个方法,`String()`方法的返回值来自于一个其内部的`map`,如下所示 +`Kind`类型仅仅实现了`Stringer`接口的`String()`方法,该类型也仅有这一个方法,`String()`方法的返回值来自于一个其内部的 +`slice`,如下所示,这种写法乍一看很像 map,但其实这是 Go 中的一种特殊的写法:索引初始化语法(index expressions in slice +literals) ```go var kindNames = []string{