Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godoc API is wrong about UpgradeHTTP #38

Closed
squarism opened this issue Mar 30, 2018 · 1 comment
Closed

Godoc API is wrong about UpgradeHTTP #38

squarism opened this issue Mar 30, 2018 · 1 comment

Comments

@squarism
Copy link

At the godoc main page:

http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
	  conn, err := ws.UpgradeHTTP(r, w, nil)
  })

Two variables are returned but looks like current source returns 4. It should be:
conn, _, _, err := ws.UpgradeHTTP(r, w, nil)

@gobwas
Copy link
Owner

gobwas commented Apr 14, 2018

Hi @squarism! Thanks for the catch. Fixed.

@gobwas gobwas closed this as completed Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants