File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -175,10 +175,10 @@ type Set[T comparable] interface {
175175 ToSlice () []T
176176
177177 // MarshalJSON will marshal the set into a JSON-based representation.
178- MarshalJSON () ([]byte , error )
178+ MarshalJSON () ([]byte , error )
179179
180180 // UnmarshalJSON will unmarshal a JSON-based byte slice into a full Set datastructure.
181- // For this to work, set subtypes must implemented the Marshal/Unmarshal interface.
181+ // For this to work, set subtypes must implemented the Marshal/Unmarshal interface.
182182 UnmarshalJSON (b []byte ) error
183183}
184184
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ SOFTWARE.
2626package mapset
2727
2828import (
29+ "bytes"
30+ "encoding/json"
2931 "fmt"
3032 "reflect"
3133 "strings"
32- "encoding/json"
33- "bytes"
3434)
3535
3636// An OrderedPair represents a 2-tuple of values.
@@ -351,4 +351,4 @@ func (s *threadUnsafeSet[T]) UnmarshalJSON(b []byte) error {
351351 }
352352
353353 return nil
354- }
354+ }
You can’t perform that action at this time.
0 commit comments