Skip to content

Incorrect constructor for None #1

@nerdwave-nick

Description

@nerdwave-nick

The constructor for None is incorrect, isFull should be set to false
This is the code from line 74 in option.go

func None[T any]() Option[T] {
	return Option[T]{isFull: true}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions