Skip to content

Commit

Permalink
Start documentation with method name.
Browse files Browse the repository at this point in the history
Replaces klauspost#92
  • Loading branch information
klauspost committed Feb 15, 2019
1 parent 2b210cf commit 09979cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (m matrix) SameSize(n matrix) error {
return nil
}

// Returns a part of this matrix. Data is copied.
// SubMatrix returns a part of this matrix. Data is copied.
func (m matrix) SubMatrix(rmin, cmin, rmax, cmax int) (matrix, error) {
result, err := newMatrix(rmax-rmin, cmax-cmin)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion reedsolomon.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

// Encoder is an interface to encode Reed-Salomon parity sets for your data.
type Encoder interface {
// Encodes parity for a set of data shards.
// Encode parity for a set of data shards.
// Input is 'shards' containing data shards followed by parity shards.
// The number of shards must match the number given to New().
// Each shard is a byte array, and they must all be the same size.
Expand Down
2 changes: 1 addition & 1 deletion streaming.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
// For usage examples, see "stream-encoder.go" and "streamdecoder.go" in the examples
// folder.
type StreamEncoder interface {
// Encodes parity shards for a set of data shards.
// Encode parity shards for a set of data shards.
//
// Input is 'shards' containing readers for data shards followed by parity shards
// io.Writer.
Expand Down

0 comments on commit 09979cd

Please sign in to comment.