From 021904e4e65804baa67b38e193e15aa37a391c60 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Tue, 14 Mar 2017 20:52:01 -0400 Subject: Fix typos in models/ and modules/ (#1248) --- modules/context/api.go | 2 +- modules/context/context.go | 2 +- modules/context/repo.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/context') diff --git a/modules/context/api.go b/modules/context/api.go index 725a3461aa..0d279d93b2 100644 --- a/modules/context/api.go +++ b/modules/context/api.go @@ -43,7 +43,7 @@ func (ctx *APIContext) Error(status int, title string, obj interface{}) { }) } -// SetLinkHeader sets pagination link header by given totol number and page size. +// SetLinkHeader sets pagination link header by given total number and page size. func (ctx *APIContext) SetLinkHeader(total, pageSize int) { page := paginater.New(total, pageSize, ctx.QueryInt("page"), 0) links := make([]string, 0, 4) diff --git a/modules/context/context.go b/modules/context/context.go index a77c1dc630..fa53b484ee 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -164,7 +164,7 @@ func Contexter() macaron.Handler { ctx.Data["PageStartTime"] = time.Now() - // Get user from session if logined. + // Get user from session if logged in. ctx.User, ctx.IsBasicAuth = auth.SignedInUser(ctx.Context, ctx.Session) if ctx.User != nil { diff --git a/modules/context/repo.go b/modules/context/repo.go index 76af49ffd7..9e37ae3fbf 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -27,7 +27,7 @@ type PullRequest struct { HeadInfo string // [:] } -// Repository contains informations to operate a repository +// Repository contains information to operate a repository type Repository struct { AccessMode models.AccessMode IsWatching bool @@ -330,7 +330,7 @@ func RepoAssignment(args ...bool) macaron.Handler { } } - // People who have push access or have fored repository can propose a new pull request. + // People who have push access or have forked repository can propose a new pull request. if ctx.Repo.IsWriter() || (ctx.IsSigned && ctx.User.HasForkedRepo(ctx.Repo.Repository.ID)) { // Pull request is allowed if this is a fork repository // and base repository accepts pull requests. -- cgit v1.2.3