Skip to content

Incorrect documenation for Alignof in http://golang.org/src/pkg/unsafe/unsafe.go #236

@gopherbot

Description

@gopherbot

by OmeiTurnbull:

The comment for func AlignOf says:

// Alignof returns the alignment of the value v.  It is the minimum value m
such
// that the address of a variable with the type of v will always always be
zero mod m.

It s/b the maximum value, not the minimum.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions