Skip to content
New issue

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

tour: Change Exercise description #1631

Open
justabitcoiner opened this issue Jul 16, 2024 · 0 comments
Open

tour: Change Exercise description #1631

justabitcoiner opened this issue Jul 16, 2024 · 0 comments

Comments

@justabitcoiner
Copy link

Context: https://go.dev/tour/concurrency/8

This part is wrong because tree.New(1) always create a new object, It may confuse.

4. Test the Same function.
Same(tree.New(1), tree.New(1)) should return true

Fix:

4. Test the Same function.
t := tree.New(1)
Same(t, t) should return true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant