docs: remove repetitive words

Signed-off-by: hishope <csqiye@126.com>
This commit is contained in:
hishope 2024-03-07 15:56:25 +08:00
parent 5df1d32fba
commit 99a1661ae7
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ func substRootDirFS(t testing.TB, fsys fs.FS) {
// RunCmdFunc is the signature of aghos.RunCommand function.
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.
func substShell(t testing.TB, rc RunCmdFunc) {
t.Helper()

View File

@ -22,7 +22,7 @@ var testdata fs.FS = os.DirFS("./testdata")
// RunCmdFunc is the signature of aghos.RunCommand function.
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.
func substShell(t testing.TB, rc RunCmdFunc) {
t.Helper()