fix some comments (#5194)

Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
cui fliter
2023-05-21 13:48:06 +08:00
committed by GitHub
parent 0002ad0fb4
commit 53d9e8be69
5 changed files with 136 additions and 114 deletions

View File

@@ -185,7 +185,7 @@ When you try to use SSDB cache, it failed. There are many cases:
`)
var SsdbBadResponse = berror.DefineCode(5002007, moduleName, "SsdbBadResponse", `
The reponse from SSDB server is invalid.
The response from SSDB server is invalid.
Usually it indicates something wrong on server side.
`)

View File

@@ -122,7 +122,7 @@ func (fc *FileCache) Init() error {
return nil
}
// getCachedFilename returns an md5 encoded file name.
// getCacheFileName returns a md5 encoded file name.
func (fc *FileCache) getCacheFileName(key string) (string, error) {
m := md5.New()
_, _ = io.WriteString(m, key)

View File

@@ -2277,7 +2277,7 @@ func TestTxOrmRollbackUnlessCommit(t *testing.T) {
o := NewOrm()
var tag Tag
// test not commited and call RollbackUnlessCommit
// test not committed and call RollbackUnlessCommit
to, err := o.Begin()
assert.Nil(t, err)
tag.Name = "rollback unless commit"