Просмотр исходного кода

chore: fix function name in comment

Signed-off-by: verytrap <wangqiuyue@outlook.com>
verytrap 11 месяцев назад
Родитель
Сommit
15a600cdaa
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      request_options.go

+ 2 - 2
request_options.go

@@ -63,7 +63,7 @@ func PrepareEnv(env map[string]string) 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.
 func WithRequestEnv(env map[string]string) RequestOption {
 	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 {
 	return func(o *FrankenPHPContext) error {
 		o.logger = logger