Skip to content

x/website: fix loop bounds in example to match function comments #46223

@krishna-birla

Description

@krishna-birla

What version of Go are you using (go version)?

$ go version
go version go1.15.8 darwin/amd64

Does this issue reproduce with the latest release?

Not Applicable.

What operating system and processor architecture are you using (go env)?

Not Applicable.

What did you do?

Played with the "Concurrent pi" example at https://golang.org, https://play.golang.org/p/Ryve74AOWxA.

What did you expect to see?

The example code should launch n go routines.

What did you see instead?

The example code launches n+1 go routines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions