We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main func main() { x := make([]int, 2, 10) _ = x[6:10] _ = x[6:] _ = x[2:] }
The text was updated successfully, but these errors were encountered:
_ = x[6:] 会出错误,因为省略了第二个参数,第二个参数默认为 len(x) = 2,所以这一行代码就就是 _ = x[6:2]
_ = x[6:]
_ = x[6:2]
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: