Skip to content

Commit

Permalink
Fix error grammar
Browse files Browse the repository at this point in the history
Fixes #56
  • Loading branch information
klauspost committed Jul 16, 2017
1 parent 18d548d commit 0dd0a0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (m matrix) Augment(right matrix) (matrix, error) {
}

// errMatrixSize is returned if matrix dimensions are doesn't match.
var errMatrixSize = errors.New("matrix sizes does not match")
var errMatrixSize = errors.New("matrix sizes do not match")

func (m matrix) SameSize(n matrix) error {
if len(m) != len(n) {
Expand Down
2 changes: 1 addition & 1 deletion reedsolomon.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ var ErrShardNoData = errors.New("no shard data")

// ErrShardSize is returned if shard length isn't the same for all
// shards.
var ErrShardSize = errors.New("shard sizes does not match")
var ErrShardSize = errors.New("shard sizes do not match")

// checkShards will check if shards are the same size
// or 0, if allowed. An error is returned if this fails.
Expand Down
8 changes: 4 additions & 4 deletions streaming.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func trimShards(in [][]byte, size int) [][]byte {

func readShards(dst [][]byte, in []io.Reader) error {
if len(in) != len(dst) {
panic("internal error: in and dst size does not match")
panic("internal error: in and dst size do not match")
}
size := -1
for i := range in {
Expand Down Expand Up @@ -291,7 +291,7 @@ func readShards(dst [][]byte, in []io.Reader) error {

func writeShards(out []io.Writer, in [][]byte) error {
if len(out) != len(in) {
panic("internal error: in and out size does not match")
panic("internal error: in and out size do not match")
}
for i := range in {
if out[i] == nil {
Expand All @@ -318,7 +318,7 @@ type readResult struct {
// cReadShards reads shards concurrently
func cReadShards(dst [][]byte, in []io.Reader) error {
if len(in) != len(dst) {
panic("internal error: in and dst size does not match")
panic("internal error: in and dst size do not match")
}
var wg sync.WaitGroup
wg.Add(len(in))
Expand Down Expand Up @@ -366,7 +366,7 @@ func cReadShards(dst [][]byte, in []io.Reader) error {
// cWriteShards writes shards concurrently
func cWriteShards(out []io.Writer, in [][]byte) error {
if len(out) != len(in) {
panic("internal error: in and out size does not match")
panic("internal error: in and out size do not match")
}
var errs = make(chan error, len(out))
var wg sync.WaitGroup
Expand Down

0 comments on commit 0dd0a0e

Please sign in to comment.