From a71b2d8cac52091abcd73abead72a4829c39c748 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Wed, 17 Aug 2022 14:24:46 +0800 Subject: [PATCH] fix some typos Signed-off-by: cui fliter --- memfs/memory_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/memfs/memory_test.go b/memfs/memory_test.go index b79ac2f..8bab98c 100644 --- a/memfs/memory_test.go +++ b/memfs/memory_test.go @@ -47,7 +47,6 @@ func (s *MemorySuite) TestNegativeOffsets(c *C) { c.Assert(err, ErrorMatches, "writeat negative: negative offset") } - func (s *MemorySuite) TestExclusive(c *C) { f, err := s.FS.OpenFile("exclusive", os.O_CREATE|os.O_EXCL|os.O_RDWR, 0666) c.Assert(err, IsNil) @@ -74,8 +73,8 @@ func (s *MemorySuite) TestOrder(c *C) { c.Assert(err, IsNil) } - attemps := 30 - for n := 0; n < attemps; n++ { + attempts := 30 + for n := 0; n < attempts; n++ { actual, err := s.FS.ReadDir("") c.Assert(err, IsNil)