mirror of
https://github.com/golang/go
synced 2024-11-22 15:54:52 -07:00
testing/fstest: clarify TestFS docs
The sentence starts "fsys must only contain", which leads the reader to believe that fsys must not contain others. The rapid reversal leads to confusion. I had to read it several times to be sure I'd parsed it correctly. Remove "only"; rely on the rest of the sentence to clarify. Change-Id: I9fb7935aed4f9839344d3a00b761d20981fba864 Reviewed-on: https://go-review.googlesource.com/c/go/+/296529 Trust: Josh Bleecher Snyder <josharian@gmail.com> Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
1853411d83
commit
86d6678429
@ -23,7 +23,7 @@ import (
|
||||
// opening and checking that each file behaves correctly.
|
||||
// It also checks that the file system contains at least the expected files.
|
||||
// As a special case, if no expected files are listed, fsys must be empty.
|
||||
// Otherwise, fsys must only contain at least the listed files: it can also contain others.
|
||||
// Otherwise, fsys must contain at least the listed files; it can also contain others.
|
||||
// The contents of fsys must not change concurrently with TestFS.
|
||||
//
|
||||
// If TestFS finds any misbehaviors, it returns an error reporting all of them.
|
||||
|
Loading…
Reference in New Issue
Block a user