Commit 5b9d7825 authored by Lucio De Re's avatar Lucio De Re Committed by Russ Cox

html/template, net/http, websocket: fix import paths in comments

R=golang-dev
CC=golang-dev, rsc
https://golang.org/cl/5411048
parent 29e3ef88
......@@ -29,7 +29,7 @@ trusted, while Execute's data parameter is not. More details are provided below.
Example
import "template"
import "text/template"
...
t, err := (&template.Set{}).Parse(`{{define "T"}}Hello, {{.}}!{{end}}`)
err = t.Execute(out, "T", "<script>alert('you have been pwned')</script>")
......
......@@ -1013,8 +1013,8 @@ func (srv *Server) Serve(l net.Listener) error {
// package main
//
// import (
// "http"
// "io"
// "net/http"
// "log"
// )
//
......@@ -1044,8 +1044,8 @@ func ListenAndServe(addr string, handler Handler) error {
// A trivial example server is:
//
// import (
// "http"
// "log"
// "net/http"
// )
//
// func handler(w http.ResponseWriter, req *http.Request) {
......
......@@ -72,8 +72,8 @@ A trivial example client:
package main
import (
"http"
"log"
"net/http"
"strings"
"websocket"
)
......
......@@ -60,8 +60,8 @@ A trivial example server:
package main
import (
"http"
"io"
"net/http"
"websocket"
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment