Skip to content

Commit 688abac

Browse files
authored
Fix various typos in codebase (go-gitea#35480)
1 parent 325e059 commit 688abac

File tree

26 files changed

+30
-30
lines changed

26 files changed

+30
-30
lines changed

contrib/backport/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The default version will read from `docs/config.yml`. You can override this
1111
using the option `--version`.
1212

1313
The upstream branches will be fetched, using the remote `origin`. This can
14-
be overrided using `--upstream`, and fetching can be avoided using
14+
be overridden using `--upstream`, and fetching can be avoided using
1515
`--no-fetch`.
1616

1717
By default the branch created will be called `backport-$PR-$VERSION`. You

contrib/legal/privacy.html.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150

151151
<p>In general, Your Gitea Instance retains User Personal Information for as long as your account is active, or as needed to provide you service.</p>
152152

153-
<p>If you would like to cancel your account or delete your User Personal Information, you may do so in your user profile. We retain and use your information as necessary to comply with our legal obligations, resolve disputes, and enforce our agreements, but barring legal requirements, we will delete your full profile (within reason) within 90 days of your request. Feel free to contact our support to request erasure of the data we process on the bassis of consent within 30 days.</p>
153+
<p>If you would like to cancel your account or delete your User Personal Information, you may do so in your user profile. We retain and use your information as necessary to comply with our legal obligations, resolve disputes, and enforce our agreements, but barring legal requirements, we will delete your full profile (within reason) within 90 days of your request. Feel free to contact our support to request erasure of the data we process on the basis of consent within 30 days.</p>
154154

155155
<p>After an account has been deleted, certain data, such as contributions to other Users' repositories and comments in others' issues, will remain. However, we will delete or de-identify your User Personal Information, including your username and email address, from the author field of issues, pull requests, and comments by associating them with a ghost user.</p>
156156

models/db/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (l *XORMLogBridge) Warn(v ...any) {
6767
l.Log(stackLevel, log.WARN, "%s", fmt.Sprint(v...))
6868
}
6969

70-
// Warnf show warnning log
70+
// Warnf show warning log
7171
func (l *XORMLogBridge) Warnf(format string, v ...any) {
7272
l.Log(stackLevel, log.WARN, format, v...)
7373
}

models/migrations/v1_11/v111.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ func AddBranchProtectionCanPushAndEnableWhitelist(x *xorm.Engine) error {
408408

409409
official, err := isOfficialReviewer(sess, review.IssueID, reviewer)
410410
if err != nil {
411-
// Branch might not be proteced or other error, ignore it.
411+
// Branch might not be protected or other error, ignore it.
412412
continue
413413
}
414414
review.Official = official

models/user/setting_options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const (
88
SettingsKeyHiddenCommentTypes = "issue.hidden_comment_types"
99
// SettingsKeyDiffWhitespaceBehavior is the setting key for whitespace behavior of diff
1010
SettingsKeyDiffWhitespaceBehavior = "diff.whitespace_behaviour"
11-
// SettingsKeyShowOutdatedComments is the setting key wether or not to show outdated comments in PRs
11+
// SettingsKeyShowOutdatedComments is the setting key whether or not to show outdated comments in PRs
1212
SettingsKeyShowOutdatedComments = "comment_code.show_outdated"
1313

1414
// UserActivityPubPrivPem is user's private key

modules/avatar/identicon/identicon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (i *Identicon) render(c, b1, b2, b1Angle, b2Angle, foreColor int) image.Ima
7070
/*
7171
# Algorithm
7272
73-
Origin: An image is splitted into 9 areas
73+
Origin: An image is split into 9 areas
7474
7575
```
7676
-------------

modules/indexer/code/elasticsearch/elasticsearch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ func (b *Indexer) Index(ctx context.Context, repo *repo_model.Repository, sha st
250250
func (b *Indexer) Delete(ctx context.Context, repoID int64) error {
251251
if err := b.doDelete(ctx, repoID); err != nil {
252252
// Maybe there is a conflict during the delete operation, so we should retry after a refresh
253-
log.Warn("Deletion of entries of repo %v within index %v was erroneus. Trying to refresh index before trying again", repoID, b.inner.VersionedIndexName(), err)
253+
log.Warn("Deletion of entries of repo %v within index %v was erroneous. Trying to refresh index before trying again", repoID, b.inner.VersionedIndexName(), err)
254254
if err := b.refreshIndex(ctx); err != nil {
255255
return err
256256
}

modules/indexer/code/indexer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func testIndexer(name string, t *testing.T, indexer internal.Indexer) {
134134
},
135135
},
136136
// Search for matches on both the contents and the filenames within the repo '62'.
137-
// This scenario yields two results: the first result is baed on the file (cucumber.md) while the second is based on the contents
137+
// This scenario yields two results: the first result is based on the file (cucumber.md) while the second is based on the contents
138138
{
139139
RepoIDs: []int64{62},
140140
Keyword: "cucumber",

modules/indexer/issues/indexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
)
2929

3030
// IndexerMetadata is used to send data to the queue, so it contains only the ids.
31-
// It may look weired, because it has to be compatible with the old queue data format.
31+
// It may look weird, because it has to be compatible with the old queue data format.
3232
// If the IsDelete flag is true, the IDs specify the issues to delete from the index without querying the database.
3333
// If the IsDelete flag is false, the ID specify the issue to index, so Indexer will query the database to get the issue data.
3434
// It should be noted that if the id is not existing in the database, it's index will be deleted too even if IsDelete is false.

modules/markup/render_link.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func resolveLinkRelative(ctx context.Context, base, cur, link string, absolute b
1818
}
1919
if strings.HasPrefix(link, "/") {
2020
if strings.HasPrefix(link, base) && strings.Count(base, "/") >= 4 {
21-
// a trick to tolerate that some users were using absolut paths (the old gitea's behavior)
21+
// a trick to tolerate that some users were using absolute paths (the old gitea's behavior)
2222
finalLink = link
2323
} else {
2424
finalLink = util.URLJoin(base, "./", link)

0 commit comments

Comments
 (0)