diff --git a/models/repo/release.go b/models/repo/release.go index cd6f322435..eb18f8aa02 100644 --- a/models/repo/release.go +++ b/models/repo/release.go @@ -140,7 +140,7 @@ func (r *Release) LoadArchiveDownloadCount(ctx context.Context) error { return err } -// GetTotalDownloadCount returns the summary of all dowlaod count of files attached to the release +// GetTotalDownloadCount returns the summary of all dowload count of files attached to the release func (r *Release) GetTotalDownloadCount(ctx context.Context) (int64, error) { var archiveCount int64 if !r.HideArchiveLinks { diff --git a/modules/card/card.go b/modules/card/card.go index dc3fa7e860..b7f31895c5 100644 --- a/modules/card/card.go +++ b/modules/card/card.go @@ -44,7 +44,7 @@ var fontCache = sync.OnceValues(func() (*truetype.Font, error) { return truetype.Parse(goregular.TTF) }) -// DefaultSize returns the default sie for a card +// DefaultSize returns the default size for a card func DefaultSize() (int, int) { return 1200, 600 }