Fix typos

This commit is contained in:
Yuki Yoshida 2018-02-15 17:39:59 +09:00
parent ad2aec815e
commit 100f44c615
6 changed files with 9 additions and 9 deletions

View file

@ -10,7 +10,7 @@ type Limiter interface {
LimitBuild(*User, *Repo, *Build) error 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. // actual limits. All limiting functions are no-ops.
type NoLimit struct{} type NoLimit struct{}

View file

@ -30,7 +30,7 @@ type User struct {
// Secret is the oauth2 token secret. // Secret is the oauth2 token secret.
Secret string `json:"-" meddler:"user_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"` Expiry int64 `json:"-" meddler:"user_expiry"`
// Email is the email address for this user. // 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 // IMPORTANT Gerrit support is not yet implemented. This file is a placeholder
// for future implementaiton. // for future implementation.
// Opts defines configuration options. // Opts defines configuration options.
type Opts struct { type Opts struct {
@ -52,7 +52,7 @@ func New(opts Opts) (remote.Remote, error) {
}, nil }, 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. // Gerrit account details are returned when the user is successfully authenticated.
func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) { func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) {
return nil, nil return nil, nil

View file

@ -105,7 +105,7 @@ func New(opts Opts) (remote.Remote, error) {
}, nil }, 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. // Gitea account details are returned when the user is successfully authenticated.
func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) { func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) {
var ( var (

View file

@ -52,7 +52,7 @@ func New(opts Opts) (remote.Remote, error) {
}, nil }, 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. // Gogs account details are returned when the user is successfully authenticated.
func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) { func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) {
var ( var (

View file

@ -12,7 +12,7 @@ type Options struct {
// Option configures the website handler. // Option configures the website handler.
type Option func(*Options) 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. // used to determine if the user account requires synchronization.
func WithSync(d time.Duration) Option { func WithSync(d time.Duration) Option {
return func(o *Options) { 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. // used to serve the website from the local filesystem.
func WithDir(s string) Option { func WithDir(s string) Option {
return func(o *Options) { 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. // website address, which should be included in the user interface.
func WithDocs(s string) Option { func WithDocs(s string) Option {
return func(o *Options) { return func(o *Options) {