docs: remove repetitive words
Signed-off-by: hishope <csqiye@126.com>
This commit is contained in:
parent
5df1d32fba
commit
99a1661ae7
|
@ -30,7 +30,7 @@ func substRootDirFS(t testing.TB, fsys fs.FS) {
|
||||||
// RunCmdFunc is the signature of aghos.RunCommand function.
|
// RunCmdFunc is the signature of aghos.RunCommand function.
|
||||||
type RunCmdFunc func(cmd string, args ...string) (code int, out []byte, err error)
|
type RunCmdFunc func(cmd string, args ...string) (code int, out []byte, err error)
|
||||||
|
|
||||||
// substShell replaces the the aghos.RunCommand function used throughout the
|
// substShell replaces the aghos.RunCommand function used throughout the
|
||||||
// package with rc for tests ran under t.
|
// package with rc for tests ran under t.
|
||||||
func substShell(t testing.TB, rc RunCmdFunc) {
|
func substShell(t testing.TB, rc RunCmdFunc) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|
|
@ -22,7 +22,7 @@ var testdata fs.FS = os.DirFS("./testdata")
|
||||||
// RunCmdFunc is the signature of aghos.RunCommand function.
|
// RunCmdFunc is the signature of aghos.RunCommand function.
|
||||||
type RunCmdFunc func(cmd string, args ...string) (code int, out []byte, err error)
|
type RunCmdFunc func(cmd string, args ...string) (code int, out []byte, err error)
|
||||||
|
|
||||||
// substShell replaces the the aghos.RunCommand function used throughout the
|
// substShell replaces the aghos.RunCommand function used throughout the
|
||||||
// package with rc for tests ran under t.
|
// package with rc for tests ran under t.
|
||||||
func substShell(t testing.TB, rc RunCmdFunc) {
|
func substShell(t testing.TB, rc RunCmdFunc) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|
Loading…
Reference in New Issue