spec: conversions doc content is somewhat ambiguous #41971
Labels
Documentation
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
The full description is as follows:
When I was looking at the type conversion document, I found a sentence of copywriting was somewhat ambiguous,
"x is an integer or a slice of bytes or runes and T is a string type"
,link: https://golang.google.cn/ref/spec#Conversions
The type here should be the
underlying type
of that type. I looked at the source code and compared theunderlying type
used in the isInteger function in the source code.In this document, all the places where the underlying type is used are specifically explained, but this sentence is not explained, I am a little confused because it is omitted here or because it has other meanings
The text was updated successfully, but these errors were encountered: