]> Cypherpunks.ru repositories - netstring.git/blobdiff - r.go
Raise copyright years
[netstring.git] / r.go
diff --git a/r.go b/r.go
index f5f74dd856428c15939e609d6affac86f7533715..7a6d28452521f0f03eb5a09822ab1e8c8b69092a 100644 (file)
--- a/r.go
+++ b/r.go
@@ -1,6 +1,6 @@
 /*
 netstring -- netstring format serialization library
-Copyright (C) 2015-2020 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2015-2023 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -48,7 +48,7 @@ func (r *Reader) Next() (uint64, error) {
        if len(p) == 0 {
                return 0, io.EOF
        }
-       idx := bytes.Index(p, []byte{':'})
+       idx := bytes.IndexByte(p, ':')
        if idx == -1 {
                return 0, errors.New("no length separator found")
        }