Skip to content

Commit 1d37a8f

Browse files
committed
change russian С to english C in comments also
1 parent c3bd280 commit 1d37a8f

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

gorm/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1616
var DefaultCtxGetter = NewCtxGetter(trmcontext.DefaultManager)
1717

18-
// CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to *gorm.DB.
18+
// CtxGetter gets Tr from trm.CtxManager by casting trm.Transaction to *gorm.DB.
1919
type CtxGetter struct {
2020
ctxManager trm.CtxManager
2121
}

pgxv4/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1414
var DefaultCtxGetter = NewCtxGetter(trmcontext.DefaultManager)
1515

16-
// CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to Tr.
16+
// CtxGetter gets Tr from trm.CtxManager by casting trm.Transaction to Tr.
1717
type CtxGetter struct {
1818
ctxManager trm.CtxManager
1919
}

pgxv5/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1414
var DefaultCtxGetter = NewCtxGetter(trmcontext.DefaultManager)
1515

16-
// CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to Tr.
16+
// CtxGetter gets Tr from trm.CtxManager by casting trm.Transaction to Tr.
1717
type CtxGetter struct {
1818
ctxManager trm.CtxManager
1919
}

redis/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1313
var DefaultCtxGetter = NewCtxGetter(trmcontext.DefaultManager)
1414

15-
// CtxGetter gets redis.Pipeliner from trm.СtxManager by casting trm.Transaction to redis.UniversalClient.
15+
// CtxGetter gets redis.Pipeliner from trm.CtxManager by casting trm.Transaction to redis.UniversalClient.
1616
type CtxGetter struct {
1717
ctxManager trm.CtxManager
1818
}

sql/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1212
var DefaultCtxGetter = NewCtxGetter(trmcontext.DefaultManager)
1313

14-
// CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to Tr.
14+
// CtxGetter gets Tr from trm.CtxManager by casting trm.Transaction to Tr.
1515
type CtxGetter struct {
1616
ctxManager trm.CtxManager
1717
}

sqlx/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1313
var DefaultCtxGetter = NewCtxGetter(trmcontext.DefaultManager)
1414

15-
// CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to Tr.
15+
// CtxGetter gets Tr from trm.CtxManager by casting trm.Transaction to Tr.
1616
type CtxGetter struct {
1717
ctxManager trm.CtxManager
1818
}

trm/context.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ type CtxKey interface{}
1010
// CtxGetter gets Transaction from context.Context.
1111
type CtxGetter func(ctx context.Context) Transaction
1212

13-
// СtxManager sets and gets a Transaction in/from context.Context.
14-
//
15-
// Deprecated: Type name contains first non-ASCII character.
16-
// Type is safed in term of backward compatibility, use below CtxManager instead.
17-
type СtxManager interface {
13+
// CtxManager sets and gets a Transaction in/from context.Context.
14+
type CtxManager interface {
1815
// Default gets Transaction from context.Context by default CtxKey.
1916
Default(ctx context.Context) Transaction
2017
// SetDefault sets.Transaction in context.Context by default CtxKey.
@@ -26,5 +23,8 @@ type СtxManager interface {
2623
SetByKey(ctx context.Context, key CtxKey, t Transaction) context.Context
2724
}
2825

29-
// CtxManager sets and gets a Transaction in/from context.Context.
30-
type CtxManager = СtxManager
26+
// СtxManager is old name with first non-ASCII character.
27+
// Deprecated: Type name contains first non-ASCII character.
28+
// Type is safed in terms of backward compatibility, use above CtxManager instead.
29+
type СtxManager = CtxManager
30+

trm/context/context.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"github.com/avito-tech/go-transaction-manager/trm/settings"
99
)
1010

11-
// DefaultManager is a trm.СtxManager with settings.DefaultCtxKey.
11+
// DefaultManager is a trm.CtxManager with settings.DefaultCtxKey.
1212
var DefaultManager = New(settings.DefaultCtxKey) //nolint:gochecknoglobals
1313

14-
// Manager implements trm.СtxManager.
14+
// Manager implements trm.CtxManager.
1515
type Manager struct {
1616
ctxKey trm.CtxKey
1717
}

0 commit comments

Comments
 (0)