Skip to content

Commit

Permalink
minor grammatical fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe90 authored and rohankmr414 committed Oct 12, 2022
1 parent f2a952d commit 7a745b8
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion config/refspec.go
Expand Up @@ -64,7 +64,7 @@ func (s RefSpec) IsExactSHA1() bool {
return plumbing.IsHash(s.Src())
}

// Src return the src side.
// Src returns the src side.
func (s RefSpec) Src() string {
spec := string(s)

Expand Down
2 changes: 1 addition & 1 deletion plumbing/format/config/section.go
Expand Up @@ -103,7 +103,7 @@ func (s *Section) RemoveSubsection(name string) *Section {
return s
}

// Option return the value for the specified key. Empty string is returned if
// Option returns the value for the specified key. Empty string is returned if
// key does not exists.
func (s *Section) Option(key string) string {
return s.Options.Get(key)
Expand Down
4 changes: 2 additions & 2 deletions plumbing/memory.go
Expand Up @@ -25,13 +25,13 @@ func (o *MemoryObject) Hash() Hash {
return o.h
}

// Type return the ObjectType
// Type returns the ObjectType
func (o *MemoryObject) Type() ObjectType { return o.t }

// SetType sets the ObjectType
func (o *MemoryObject) SetType(t ObjectType) { o.t = t }

// Size return the size of the object
// Size returns the size of the object
func (o *MemoryObject) Size() int64 { return o.sz }

// SetSize set the object size, a content of the given size should be written
Expand Down
2 changes: 1 addition & 1 deletion plumbing/object/change.go
Expand Up @@ -39,7 +39,7 @@ func (c *Change) Action() (merkletrie.Action, error) {
return merkletrie.Modify, nil
}

// Files return the files before and after a change.
// Files returns the files before and after a change.
// For insertions from will be nil. For deletions to will be nil.
func (c *Change) Files() (from, to *File, err error) {
action, err := c.Action()
Expand Down
8 changes: 4 additions & 4 deletions plumbing/reference.go
Expand Up @@ -168,22 +168,22 @@ func NewHashReference(n ReferenceName, h Hash) *Reference {
}
}

// Type return the type of a reference
// Type returns the type of a reference
func (r *Reference) Type() ReferenceType {
return r.t
}

// Name return the name of a reference
// Name returns the name of a reference
func (r *Reference) Name() ReferenceName {
return r.n
}

// Hash return the hash of a hash reference
// Hash returns the hash of a hash reference
func (r *Reference) Hash() Hash {
return r.h
}

// Target return the target of a symbolic reference
// Target returns the target of a symbolic reference
func (r *Reference) Target() ReferenceName {
return r.target
}
Expand Down
4 changes: 2 additions & 2 deletions plumbing/transport/git/common.go
Expand Up @@ -77,14 +77,14 @@ func (c *command) StderrPipe() (io.Reader, error) {
return nil, nil
}

// StdinPipe return the underlying connection as WriteCloser, wrapped to prevent
// StdinPipe returns the underlying connection as WriteCloser, wrapped to prevent
// call to the Close function from the connection, a command execution in git
// protocol can't be closed or killed
func (c *command) StdinPipe() (io.WriteCloser, error) {
return ioutil.WriteNopCloser(c.conn), nil
}

// StdoutPipe return the underlying connection as Reader
// StdoutPipe returns the underlying connection as Reader
func (c *command) StdoutPipe() (io.Reader, error) {
return c.conn, nil
}
Expand Down
2 changes: 1 addition & 1 deletion storage/filesystem/shallow.go
Expand Up @@ -34,7 +34,7 @@ func (s *ShallowStorage) SetShallow(commits []plumbing.Hash) error {
return err
}

// Shallow return the shallow commits reading from shallo file from .git
// Shallow returns the shallow commits reading from shallo file from .git
func (s *ShallowStorage) Shallow() ([]plumbing.Hash, error) {
f, err := s.dir.Shallow()
if f == nil || err != nil {
Expand Down

0 comments on commit 7a745b8

Please sign in to comment.