Skip to content

net: typo in IPNet.String documentation #33433

@gaissmai

Description

@gaissmai

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

$ go version
go version go1.12.7 linux/amd64

Does this issue reproduce with the latest release?

currently latest stable

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

What did you do?

read the documentation

 go doc -src net.IPNet.String
// String returns the CIDR notation of n like "192.0.2.1/24"
// ...

What did you expect to see?

// String returns the CIDR notation of n like "192.0.2.0/24"

What did you see instead?

// String returns the CIDR notation of n like "192.0.2.1/24"

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions