Apostrophes are serious business
Test and check / test-and-check (push) Canceled after 0s

This commit is contained in:
b
2026-08-21 23:11:15 -06:00
parent 9b25034a01
commit c7a743b07e
4 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -134,7 +134,7 @@ func MessageEnd(pos uint64, expected ...string) Message {
}
// MakeState creates a new State.
// It's mostly useful for testing. You probably don't need it.
// Its mostly useful for testing. You probably dont need it.
func MakeState[In any](r ReaderAt[In]) State[In] {
return State[In]{r: r}
}
@@ -145,12 +145,12 @@ type State[In any] struct {
pos uint64
}
// Read fills dst with data from this State's position in the underlying source.
// Read fills dst with data from this States position in the underlying source.
// It returns the number of data it read and a new State for the position at which
// the read ended, and an error if the read either (1) failed or (2) reached the
// end of the source before filling dst. All reads from a given State will return
// data from the same position the source.
// If the source had too few data left to fill dst, or if the State's position is
// If the source had too few data left to fill dst, or if the States position is
// at or past the end of the source, err will be io.EOF.
func (s State[In]) Read(dst []In) (n uint64, next State[In], err error) {
if s.pos > math.MaxInt64 {
@@ -169,7 +169,7 @@ func (s State[In]) Read(dst []In) (n uint64, next State[In], err error) {
return uint64(nread), s, err
}
// Pos returns this State's position.
// Pos returns this States position.
func (s State[In]) Pos() uint64 {
return s.pos
}