1
0
mirror of https://github.com/golang/go synced 2024-11-19 22:04:44 -07:00

websocket: fix comment indentation

To make code samples formatted correctly by godoc.

R=r, ukai, rsc
CC=golang-dev, gri
https://golang.org/cl/1738048
This commit is contained in:
Andrew Gerrand 2010-07-13 10:29:41 +10:00
parent d9c47cd8c8
commit 48e4d67b23
2 changed files with 22 additions and 22 deletions

View File

@ -62,7 +62,8 @@ func newClient(resourceName, host, origin, location, protocol string, rwc io.Rea
/*
Dial opens a new client connection to a Web Socket.
A trivial example client is:
A trivial example client:
package main
@ -99,8 +100,7 @@ func Dial(url, protocol, origin string) (ws *Conn, err os.Error) {
}
/*
Generates handshake key as described in 4.1 Opening handshake
step 16 to 22.
Generates handshake key as described in 4.1 Opening handshake step 16 to 22.
cf. http://www.whatwg.org/specs/web-socket-protocol/
*/
func generateKeyNumber() (key string, number uint32) {
@ -143,8 +143,7 @@ func generateKeyNumber() (key string, number uint32) {
}
/*
Generates handshake key_3 as described in 4.1 Opening handshake
step 26.
Generates handshake key_3 as described in 4.1 Opening handshake step 26.
cf. http://www.whatwg.org/specs/web-socket-protocol/
*/
func generateKey3() (key []byte) {
@ -159,7 +158,7 @@ func generateKey3() (key []byte) {
/*
Gets expected from challenge as described in 4.1 Opening handshake
Step 42 to 43.
step 42 to 43.
cf. http://www.whatwg.org/specs/web-socket-protocol/
*/
func getExpectedForChallenge(number1, number2 uint32, key3 []byte) (expected []byte, err os.Error) {

View File

@ -15,7 +15,8 @@ import (
/*
Handler is an interface to a WebSocket.
A trivial example server is:
A trivial example server:
package main
@ -166,7 +167,7 @@ func (f Handler) ServeHTTP(c *http.Conn, req *http.Request) {
/*
Draft75Handler is an interface to a WebSocket based on
Draft75Handler is an interface to a WebSocket based on the
(soon obsolete) draft-hixie-thewebsocketprotocol-75.
*/
type Draft75Handler func(*Conn)