Skip to content

Commit 3708ca8

Browse files
authored
fix: some typos (#19956)
1 parent 5f13678 commit 3708ca8

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Ensure you are running in the correct environment or set the correct configurati
6868
If this is the intended configuration file complete the [database] section.`, setting.CustomConf)
6969
}
7070
if err := db.InitEngine(ctx); err != nil {
71-
return fmt.Errorf("unable to initialise the database using the configuration in %q. Error: %v", setting.CustomConf, err)
71+
return fmt.Errorf("unable to initialize the database using the configuration in %q. Error: %v", setting.CustomConf, err)
7272
}
7373
return nil
7474
}

docs/content/doc/advanced/logging-documentation.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ recommended that pausing only done for a very short period of time.
349349

350350
It is possible to add and remove logging whilst Gitea is running using the `gitea manager logging add` and `remove` subcommands.
351351
This functionality can only adjust running log systems and cannot be used to start the access or router loggers if they
352-
were not already initialised. If you wish to start these systems you are advised to adjust the app.ini and (gracefully) restart
352+
were not already initialized. If you wish to start these systems you are advised to adjust the app.ini and (gracefully) restart
353353
the Gitea service.
354354

355355
The main intention of these commands is to easily add a temporary logger to investigate problems on running systems where a restart

models/migrations/migrations.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func EnsureUpToDate(x *xorm.Engine) error {
419419
}
420420

421421
if currentDB < 0 {
422-
return fmt.Errorf("Database has not been initialised")
422+
return fmt.Errorf("Database has not been initialized")
423423
}
424424

425425
if minDBVersion > currentDB {
@@ -953,7 +953,7 @@ func dropTableColumns(sess *xorm.Session, tableName string, columnNames ...strin
953953
return nil
954954
}
955955

956-
// modifyColumn will modify column's type or other propertity. SQLITE is not supported
956+
// modifyColumn will modify column's type or other property. SQLITE is not supported
957957
func modifyColumn(x *xorm.Engine, tableName string, col *schemas.Column) error {
958958
var indexes map[string]*schemas.Index
959959
var err error

modules/indexer/issues/bleve_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestBleveIndexAndSearch(t *testing.T) {
2626
defer indexer.Close()
2727

2828
if _, err := indexer.Init(); err != nil {
29-
assert.Fail(t, "Unable to initialise bleve indexer: %v", err)
29+
assert.Fail(t, "Unable to initialize bleve indexer: %v", err)
3030
return
3131
}
3232

routers/api/v1/repo/milestone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func ListMilestones(ctx *context.APIContext) {
3939
// required: true
4040
// - name: state
4141
// in: query
42-
// description: Milestone state, Recognised values are open, closed and all. Defaults to "open"
42+
// description: Milestone state, Recognized values are open, closed and all. Defaults to "open"
4343
// type: string
4444
// - name: name
4545
// in: query

templates/swagger/v1_json.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7223,7 +7223,7 @@
72237223
},
72247224
{
72257225
"type": "string",
7226-
"description": "Milestone state, Recognised values are open, closed and all. Defaults to \"open\"",
7226+
"description": "Milestone state, Recognized values are open, closed and all. Defaults to \"open\"",
72277227
"name": "state",
72287228
"in": "query"
72297229
},

0 commit comments

Comments
 (0)