Skip to content

Commit 03a3fea

Browse files
committed
Remove outdated comment
1 parent 6c9a71e commit 03a3fea

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

reader.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,10 @@ func (r *Reader) LookupOffset(ipAddress net.IP) (uintptr, error) {
138138
//
139139
// As a special case, a struct field of type uintptr will be used to capture
140140
// the offset of the value. Decode may later be used to extract the stored
141-
// value from the offset. MaxmindDBs are highly normalized: for example in the
142-
// Cities database, all records of the same country will reference a single
143-
// representative record for that country. This uintptr behavior allows clients
144-
// to leverage this normalization in their own sub-record caching.
145-
//
146-
// Currently the decoder expect most data types to correspond exactly (e.g.,
147-
// a uint64 database type must be decoded into a uint64 Go type), with the
148-
// exception of uintptr. In the future, this may be made more flexible.
141+
// value from the offset. MaxMind DBs are highly normalized: for example in
142+
// the City database, all records of the same country will reference a
143+
// single representative record for that country. This uintptr behavior allows
144+
// clients to leverage this normalization in their own sub-record caching.
149145
func (r *Reader) Decode(offset uintptr, result interface{}) error {
150146
rv := reflect.ValueOf(result)
151147
if rv.Kind() != reflect.Ptr || rv.IsNil() {

0 commit comments

Comments
 (0)