Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iprange.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ func (r IPRange) MarshalText() ([]byte, error) {

// UnmarshalText implements encoding.TextUnmarshaler.
// It parses the text representation using FromString.
// If text is empty, it leaves the receiver as the zero value.
// It returns an error if the receiver is nil or is not the zero value.
// If text is empty, it leaves the receiver as the zero value.
func (r *IPRange) UnmarshalText(text []byte) error {
if r == nil {
return errors.New("UnmarshalText on nil receiver")
Expand Down