fix some typos

pull/2670/head
徐胖 2019-04-16 09:27:15 +08:00
parent d25d661c75
commit 3883ee9614
6 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,7 @@
local golang = "golang:1.11";
# defines a temporary volume so that the Go cache can
# be shared with all pipeine steps.
# be shared with all pipeline steps.
local volumes = [
{
name: "gopath",

View File

@ -82,7 +82,7 @@ func main() {
Errorln("cannot ping the docker daemon")
time.Sleep(time.Second)
} else {
logrus.Debugln("succussfully pinged the docker daemon")
logrus.Debugln("successfully pinged the docker daemon")
break
}
}
@ -119,7 +119,7 @@ func main() {
}
}
// helper funciton configures the logging.
// helper function configures the logging.
func initLogging(c config.Config) {
if c.Logging.Debug {
logrus.SetLevel(logrus.DebugLevel)

View File

@ -128,7 +128,7 @@ func isKubernetes() bool {
return os.Getenv("KUBERNETES_SERVICE_HOST") != ""
}
// helper funciton configures the logging.
// helper function configures the logging.
func initLogging(c config.Config) {
if c.Logging.Debug {
logrus.SetLevel(logrus.DebugLevel)

View File

@ -131,7 +131,7 @@ func main() {
}
}
// helper funciton configures the logging.
// helper function configures the logging.
func initLogging(c config.Config) {
if c.Logging.Debug {
logrus.SetLevel(logrus.DebugLevel)

View File

@ -18,7 +18,7 @@ import "context"
// AdmissionService grants access to the system. The service can
// be used to restrict access to authorized users, such as
// members of an organiozation in your soruce control management
// members of an organiozation in your source control management
// system.
type AdmissionService interface {
Admit(context.Context, *User) error

View File

@ -536,7 +536,7 @@ func (r *Runner) start(ctx context.Context) error {
default:
// This error is ignored on purpose. The system
// should not exit the runner on error. The run
// funciton logs all errors, which should be enough
// function logs all errors, which should be enough
// to surface potential issues to an administrator.
r.poll(ctx)
}