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

x/website: #61652

Closed
Zalizer opened this issue Jul 29, 2023 · 1 comment
Closed

x/website: #61652

Zalizer opened this issue Jul 29, 2023 · 1 comment

Comments

@Zalizer
Copy link

Zalizer commented Jul 29, 2023

What is the URL of the page with the issue?

https://go.dev/doc/tutorial/random-greeting

What is your user agent?

Firefox

Screenshot

Add an init function to seed the rand package with the current time. Go executes init functions automatically at program startup, after global variables have been initialized. For more about init functions, see Effective Go.

What did you do?

Perform the tutorial :)

What did you expect to see?

Descriptions matching the code.

What did you see instead?

Reference to old "init" code, which I guess got removed after Go 1.20, when not needed anymore.
https://pkg.go.dev/math/rand#Seed

@gopherbot gopherbot added this to the Unreleased milestone Jul 29, 2023
@seankhliao
Copy link
Member

Duplicate of #60627

@seankhliao seankhliao marked this as a duplicate of #60627 Jul 29, 2023
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Jul 29, 2023
@golang golang locked and limited conversation to collaborators Jul 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants