fix(#54): 修复了类型介绍错误,并添加了索引初始化语法的介绍#55
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a documentation error regarding Go reflection types and enhances the explanation with additional syntax information.
- Corrected the description of
Kindtype'sString()method return value source from "map" to "slice" - Added explanation of Go's index initialization syntax in slice literals
| `Kind`类型仅仅实现了`Stringer`接口的`String()`方法,该类型也仅有这一个方法,`String()`方法的返回值来自于一个其内部的`map`,如下所示 | ||
| `Kind`类型仅仅实现了`Stringer`接口的`String()`方法,该类型也仅有这一个方法,`String()`方法的返回值来自于一个其内部的 | ||
| `slice`,如下所示,这种写法乍一看很像 map,但其实这是 Go 中的一种特殊的写法:索引初始化语法(index expressions in slice | ||
| literals) |
There was a problem hiding this comment.
The parenthesis character ')' appears to be a full-width Chinese character. Consider using the standard half-width parenthesis ')' for consistency with programming documentation.
Suggested change
| literals) | |
| literals) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.