瀏覽代碼

internal: fix typos (#482)

Ainar Garipov 5 年之前
父節點
當前提交
236ed259b1
共有 3 個檔案被更改,包括 3 行新增3 行删除
  1. 1
    1
      internal/driver/webui.go
  2. 1
    1
      internal/graph/graph.go
  3. 1
    1
      internal/plugin/plugin.go

+ 1
- 1
internal/driver/webui.go 查看文件

@@ -334,7 +334,7 @@ func dotToSvg(dot []byte) ([]byte, error) {
334 334
 		return nil, err
335 335
 	}
336 336
 
337
-	// Fix dot bug related to unquoted amperands.
337
+	// Fix dot bug related to unquoted ampersands.
338 338
 	svg := bytes.Replace(out.Bytes(), []byte("&;"), []byte("&;"), -1)
339 339
 
340 340
 	// Cleanup for embedding by dropping stuff before the <svg> start.

+ 1
- 1
internal/graph/graph.go 查看文件

@@ -191,7 +191,7 @@ type NodeSet map[NodeInfo]bool
191 191
 // works as a unique identifier; however, in a tree multiple nodes may share
192 192
 // identical NodeInfos. A *Node does uniquely identify a node so we can use that
193 193
 // instead. Though a *Node also uniquely identifies a node in a graph,
194
-// currently, during trimming, graphs are rebult from scratch using only the
194
+// currently, during trimming, graphs are rebuilt from scratch using only the
195 195
 // NodeSet, so there would not be the required context of the initial graph to
196 196
 // allow for the use of *Node.
197 197
 type NodePtrSet map[*Node]bool

+ 1
- 1
internal/plugin/plugin.go 查看文件

@@ -34,7 +34,7 @@ type Options struct {
34 34
 	UI      UI
35 35
 
36 36
 	// HTTPServer is a function that should block serving http requests,
37
-	// including the handlers specfied in args.  If non-nil, pprof will
37
+	// including the handlers specified in args.  If non-nil, pprof will
38 38
 	// invoke this function if necessary to provide a web interface.
39 39
 	//
40 40
 	// If HTTPServer is nil, pprof will use its own internal HTTP server.