chore: fix function names in comment (#3536)

This commit is contained in:
findnature 2024-04-24 19:14:42 +08:00 committed by GitHub
parent 59a959a361
commit f48ca959f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -657,7 +657,7 @@ func TestService_GetPrefix(t *testing.T) {
} }
} }
// TestService_GetName Test GetName // TestService_GetKey Test GetKey
func TestService_GetKey(t *testing.T) { func TestService_GetKey(t *testing.T) {
type fields struct { type fields struct {
Service gsvc.Service Service gsvc.Service

View File

@ -581,7 +581,7 @@ func ExampleClient_SetProxy() {
// true // true
} }
// ExampleClientChain_Proxy a chain version of example for `gclient.Client.Proxy` method. // ExampleClient_Proxy a chain version of example for `gclient.Client.Proxy` method.
// please prepare two proxy server before running this example. // please prepare two proxy server before running this example.
// http proxy server listening on `127.0.0.1:1081` // http proxy server listening on `127.0.0.1:1081`
// socks5 proxy server listening on `127.0.0.1:1080` // socks5 proxy server listening on `127.0.0.1:1080`

View File

@ -358,7 +358,7 @@ func (l *Logger) printStd(ctx context.Context, level int, values ...interface{})
l.print(ctx, level, "", values...) l.print(ctx, level, "", values...)
} }
// printStd prints content `s` with stack check. // printErr prints content `s` with stack check.
func (l *Logger) printErr(ctx context.Context, level int, values ...interface{}) { func (l *Logger) printErr(ctx context.Context, level int, values ...interface{}) {
var stack string var stack string
if l.config.StStatus == 1 { if l.config.StStatus == 1 {