diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2019-11-01 10:08:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-01 10:08:16 +0100 |
commit | 1a7db85bca7027d90afdb5ce711622aaac9feaed (patch) | |
tree | c550ea453e67a95a22b3dd557b4e1d5044bd5737 /plumbing/filemode | |
parent | 3895dfa31c54adf83fdaffd90cf1b5fd4e5d7ff0 (diff) | |
parent | 81627ab53e269a762b769b47c004cb4309452492 (diff) | |
download | go-git-1a7db85bca7027d90afdb5ce711622aaac9feaed.tar.gz |
Merge pull request #1231 from alexandear/fix-typos
*: fix typos in comments, variables and function names
Diffstat (limited to 'plumbing/filemode')
-rw-r--r-- | plumbing/filemode/filemode.go | 6 | ||||
-rw-r--r-- | plumbing/filemode/filemode_test.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plumbing/filemode/filemode.go b/plumbing/filemode/filemode.go index 0994bc4..594984f 100644 --- a/plumbing/filemode/filemode.go +++ b/plumbing/filemode/filemode.go @@ -32,10 +32,10 @@ const ( Regular FileMode = 0100644 // Deprecated represent non-executable files with the group writable // bit set. This mode was supported by the first versions of git, - // but it has been deprecatred nowadays. This library uses them + // but it has been deprecated nowadays. This library uses them // internally, so you can read old packfiles, but will treat them as // Regulars when interfacing with the outside world. This is the - // standard git behaviuor. + // standard git behaviour. Deprecated FileMode = 0100664 // Executable represents executable files. Executable FileMode = 0100755 @@ -152,7 +152,7 @@ func (m FileMode) IsRegular() bool { } // IsFile returns if the FileMode represents that of a file, this is, -// Regular, Deprecated, Excutable or Link. +// Regular, Deprecated, Executable or Link. func (m FileMode) IsFile() bool { return m == Regular || m == Deprecated || diff --git a/plumbing/filemode/filemode_test.go b/plumbing/filemode/filemode_test.go index 299c96a..8d713f6 100644 --- a/plumbing/filemode/filemode_test.go +++ b/plumbing/filemode/filemode_test.go @@ -126,7 +126,7 @@ func (s *ModeSuite) TestNewFromOsFileModeExclusive(c *C) { } func (s *ModeSuite) TestNewFromOsFileModeTemporary(c *C) { - // temporaty files are ignored + // temporary files are ignored fixture{ input: os.FileMode(0644) | os.ModeTemporary, // Trw-r--r-- expected: Empty, err: "no equivalent.*", |