Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

docs: fix code comment syntax (#3948)

piglig4e9fa16a4a75
diff --git a/api/instance.go b/api/instance.go
index d5a119db52..ae07080e38 100644
--- a/api/instance.go
+++ b/api/instance.go
@@ -112,7 +112,7 @@ type InstancePatch struct {
AuthSource string `json:"authSource" jsonapi:"attr,authSource"`
}
-// DataSourceFromInstanceWithType gets a typed data source from a instance.
+// DataSourceFromInstanceWithType gets a typed data source from an instance.
func DataSourceFromInstanceWithType(instance *Instance, dataSourceType DataSourceType) *DataSource {
for _, dataSource := range instance.DataSourceList {
if dataSource.Type == dataSourceType {
diff --git a/store/instance.go b/store/instance.go
index c8652931ce..7cb3cfb22e 100644
--- a/store/instance.go
+++ b/store/instance.go
@@ -669,7 +669,7 @@ func findInstanceImpl(ctx context.Context, tx *Tx, find *api.InstanceFind) ([]*i
return instanceRawList, nil
}
-// patchInstanceImpl updates a instance by ID. Returns the new state of the instance after update.
+// patchInstanceImpl updates an instance by ID. Returns the new state of the instance after update.
func patchInstanceImpl(ctx context.Context, tx *Tx, patch *InstancePatch) (*instanceRaw, error) {
// Build UPDATE clause.
set, args := []string{"updater_id = $1"}, []interface{}{patch.UpdaterID}