fix typos in pkg

Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: aef02273d9cdf8144b95c9c9a8d1e119d24b2d9d
Component: engine
This commit is contained in:
allencloud
2016-04-09 21:18:15 +08:00
parent 476df032fb
commit f4582c23f4
10 changed files with 12 additions and 12 deletions

View File

@ -20,7 +20,7 @@ func GenerateRandomAlphaOnlyString(n int) string {
return string(b)
}
// GenerateRandomASCIIString generates an ASCII random stirng with length n.
// GenerateRandomASCIIString generates an ASCII random string with length n.
func GenerateRandomASCIIString(n int) string {
chars := "abcdefghijklmnopqrstuvwxyz" +
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
@ -74,7 +74,7 @@ func quote(word string, buf *bytes.Buffer) {
}
// ShellQuoteArguments takes a list of strings and escapes them so they will be
// handled right when passed as arguments to an program via a shell
// handled right when passed as arguments to a program via a shell
func ShellQuoteArguments(args []string) string {
var buf bytes.Buffer
for i, arg := range args {