Browse Source

chore: fix function name in comment

Signed-off-by: verytrap <wangqiuyue@outlook.com>
verytrap 11 months ago
parent
commit
15a600cdaa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      request_options.go

+ 2 - 2
request_options.go

@@ -63,7 +63,7 @@ func PrepareEnv(env map[string]string) PreparedEnv {
 	return preparedEnv
 	return preparedEnv
 }
 }
 
 
-// WithEnv set CGI-like environment variables that will be available in $_SERVER.
+// WithRequestEnv set CGI-like environment variables that will be available in $_SERVER.
 // Values set with WithEnv always have priority over automatically populated values.
 // Values set with WithEnv always have priority over automatically populated values.
 func WithRequestEnv(env map[string]string) RequestOption {
 func WithRequestEnv(env map[string]string) RequestOption {
 	return WithRequestPreparedEnv(PrepareEnv(env))
 	return WithRequestPreparedEnv(PrepareEnv(env))
@@ -77,7 +77,7 @@ func WithRequestPreparedEnv(env PreparedEnv) RequestOption {
 	}
 	}
 }
 }
 
 
-// WithLogger sets the logger associated with the current request
+// WithRequestLogger sets the logger associated with the current request
 func WithRequestLogger(logger *zap.Logger) RequestOption {
 func WithRequestLogger(logger *zap.Logger) RequestOption {
 	return func(o *FrankenPHPContext) error {
 	return func(o *FrankenPHPContext) error {
 		o.logger = logger
 		o.logger = logger