Skip to content

math/big: Float.Copy doc string can be misleading #66358

@griesemer

Description

@griesemer

Reminder issue to review this documentation in math/big:

// Copy sets z to x, with the same precision, rounding mode, and
// accuracy as x, and returns z. x is not changed even if z and
// x are the same.
func (z *Float) Copy(x *Float) *Float

The 2nd sentence is confusing.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions