Merge pull request #2344 from yuukiyo/fix_typo [ci skip]

Fix typos
This commit is contained in:
Brad Rydzewski 2018-02-19 12:23:59 -08:00 committed by GitHub
commit 0c7c811ebd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 9 deletions

View file

@ -10,7 +10,7 @@ type Limiter interface {
LimitBuild(*User, *Repo, *Build) error
}
// NoLimit impliments the Limiter interface without enforcing any
// NoLimit implements the Limiter interface without enforcing any
// actual limits. All limiting functions are no-ops.
type NoLimit struct{}

View file

@ -30,7 +30,7 @@ type User struct {
// Secret is the oauth2 token secret.
Secret string `json:"-" meddler:"user_secret"`
// Expiry is the token and secret expriation timestamp.
// Expiry is the token and secret expiration timestamp.
Expiry int64 `json:"-" meddler:"user_expiry"`
// Email is the email address for this user.

View file

@ -11,7 +11,7 @@ import (
)
// IMPORTANT Gerrit support is not yet implemented. This file is a placeholder
// for future implementaiton.
// for future implementation.
// Opts defines configuration options.
type Opts struct {
@ -52,7 +52,7 @@ func New(opts Opts) (remote.Remote, error) {
}, nil
}
// Login authenticates an account with Gerrit using oauth authenticaiton. The
// Login authenticates an account with Gerrit using oauth authentication. The
// Gerrit account details are returned when the user is successfully authenticated.
func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) {
return nil, nil

View file

@ -105,7 +105,7 @@ func New(opts Opts) (remote.Remote, error) {
}, nil
}
// Login authenticates an account with Gitea using basic authenticaiton. The
// Login authenticates an account with Gitea using basic authentication. The
// Gitea account details are returned when the user is successfully authenticated.
func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) {
var (

View file

@ -52,7 +52,7 @@ func New(opts Opts) (remote.Remote, error) {
}, nil
}
// Login authenticates an account with Gogs using basic authenticaiton. The
// Login authenticates an account with Gogs using basic authentication. The
// Gogs account details are returned when the user is successfully authenticated.
func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) {
var (

View file

@ -12,7 +12,7 @@ type Options struct {
// Option configures the website handler.
type Option func(*Options)
// WithSync configures the website hanlder with the duration value
// WithSync configures the website handler with the duration value
// used to determine if the user account requires synchronization.
func WithSync(d time.Duration) Option {
return func(o *Options) {
@ -20,7 +20,7 @@ func WithSync(d time.Duration) Option {
}
}
// WithDir configures the website hanlder with the directory value
// WithDir configures the website handler with the directory value
// used to serve the website from the local filesystem.
func WithDir(s string) Option {
return func(o *Options) {
@ -28,7 +28,7 @@ func WithDir(s string) Option {
}
}
// WithDocs configures the website hanlder with the documentation
// WithDocs configures the website handler with the documentation
// website address, which should be included in the user interface.
func WithDocs(s string) Option {
return func(o *Options) {