Skip to content

Commit 8236f8d

Browse files
alexandearkirillDanshin
authored andcommittedAug 30, 2023
fasthttpproxy: fix doc examples
1 parent 4ec5c5a commit 8236f8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎fasthttpproxy/proxy_env.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const (
2525
// Example usage:
2626
//
2727
// c := &fasthttp.Client{
28-
// Dial: fasthttp.FasthttpProxyHTTPDialer(),
28+
// Dial: fasthttpproxy.FasthttpProxyHTTPDialer(),
2929
// }
3030
func FasthttpProxyHTTPDialer() fasthttp.DialFunc {
3131
return FasthttpProxyHTTPDialerTimeout(0)
@@ -37,7 +37,7 @@ func FasthttpProxyHTTPDialer() fasthttp.DialFunc {
3737
// Example usage:
3838
//
3939
// c := &fasthttp.Client{
40-
// Dial: fasthttp.FasthttpProxyHTTPDialerTimeout(time.Second * 2),
40+
// Dial: fasthttpproxy.FasthttpProxyHTTPDialerTimeout(time.Second * 2),
4141
// }
4242
func FasthttpProxyHTTPDialerTimeout(timeout time.Duration) fasthttp.DialFunc {
4343
proxier := httpproxy.FromEnvironment().ProxyFunc()

0 commit comments

Comments
 (0)
Please sign in to comment.