diff --git a/config/config.go b/config/config.go index 5be04492..45507888 100644 --- a/config/config.go +++ b/config/config.go @@ -50,7 +50,7 @@ func (c *Context) Write() (err error) { return ioutil.WriteFile(credentialsPath(c.AbsPath), data, 0600) } -// Discovers the gd directory, if no gd directory or credentials +// Discover: Discovers the gd directory, if no gd directory or credentials // could be found for the path, returns ErrNoContext. func Discover(currentAbsPath string) (context *Context, err error) { p := currentAbsPath diff --git a/push.go b/push.go index 0dd3937e..09b2d2f9 100644 --- a/push.go +++ b/push.go @@ -24,7 +24,7 @@ import ( "github.com/rakyll/drive/config" ) -// Pushes to remote if local path exists and in a god context. If path is a +// Push: Pushes to remote if local path exists and in a god context. If path is a // directory, it recursively pushes to the remote if there are local changes. // It doesn't check if there are local changes if isForce is set. func (g *Commands) Push() (err error) {