Skip to content

Commit c2eef17

Browse files
authored
fix some typos (#1082)
1 parent 4b286f2 commit c2eef17

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

models/login_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ func GetActiveOAuth2LoginSourceByName(name string) (*LoginSource, error) {
715715
// key is used as technical name (like in the callbackURL)
716716
// values to display
717717
func GetActiveOAuth2Providers() (map[string]OAuth2Provider, error) {
718-
// Maybe also seperate used and unused providers so we can force the registration of only 1 active provider for each type
718+
// Maybe also separate used and unused providers so we can force the registration of only 1 active provider for each type
719719

720720
loginSources, err := GetActiveOAuth2ProviderLoginSources()
721721
if err != nil {

models/release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func GetReleasesByRepoID(repoID int64, page, pageSize int) (rels []*Release, err
244244
return rels, err
245245
}
246246

247-
// GetReleasesByRepoIDAndNames returns a list of releases of repository accroding repoID and tagNames.
247+
// GetReleasesByRepoIDAndNames returns a list of releases of repository according repoID and tagNames.
248248
func GetReleasesByRepoIDAndNames(repoID int64, tagNames []string) (rels []*Release, err error) {
249249
err = x.
250250
Desc("created_unix").

modules/base/tool.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,17 +529,17 @@ func IsTextFile(data []byte) bool {
529529
return strings.Index(http.DetectContentType(data), "text/") != -1
530530
}
531531

532-
// IsImageFile detectes if data is an image format
532+
// IsImageFile detects if data is an image format
533533
func IsImageFile(data []byte) bool {
534534
return strings.Index(http.DetectContentType(data), "image/") != -1
535535
}
536536

537-
// IsPDFFile detectes if data is a pdf format
537+
// IsPDFFile detects if data is a pdf format
538538
func IsPDFFile(data []byte) bool {
539539
return strings.Index(http.DetectContentType(data), "application/pdf") != -1
540540
}
541541

542-
// IsVideoFile detectes if data is an video format
542+
// IsVideoFile detects if data is an video format
543543
func IsVideoFile(data []byte) bool {
544544
return strings.Index(http.DetectContentType(data), "video/") != -1
545545
}

routers/repo/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func Home(ctx *context.Context) {
296296
ctx.HTML(200, tplRepoHome)
297297
}
298298

299-
// RenderUserCards render a page show users accroding the input templaet
299+
// RenderUserCards render a page show users according the input templaet
300300
func RenderUserCards(ctx *context.Context, total int, getter func(page int) ([]*models.User, error), tpl base.TplName) {
301301
page := ctx.QueryInt("page")
302302
if page <= 0 {

0 commit comments

Comments
 (0)