소스 검색

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
 		return nil, err
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
 	svg := bytes.Replace(out.Bytes(), []byte("&;"), []byte("&;"), -1)
338
 	svg := bytes.Replace(out.Bytes(), []byte("&;"), []byte("&;"), -1)
339
 
339
 
340
 	// Cleanup for embedding by dropping stuff before the <svg> start.
340
 	// Cleanup for embedding by dropping stuff before the <svg> start.

+ 1
- 1
internal/graph/graph.go 파일 보기

191
 // works as a unique identifier; however, in a tree multiple nodes may share
191
 // works as a unique identifier; however, in a tree multiple nodes may share
192
 // identical NodeInfos. A *Node does uniquely identify a node so we can use that
192
 // identical NodeInfos. A *Node does uniquely identify a node so we can use that
193
 // instead. Though a *Node also uniquely identifies a node in a graph,
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
 // NodeSet, so there would not be the required context of the initial graph to
195
 // NodeSet, so there would not be the required context of the initial graph to
196
 // allow for the use of *Node.
196
 // allow for the use of *Node.
197
 type NodePtrSet map[*Node]bool
197
 type NodePtrSet map[*Node]bool

+ 1
- 1
internal/plugin/plugin.go 파일 보기

34
 	UI      UI
34
 	UI      UI
35
 
35
 
36
 	// HTTPServer is a function that should block serving http requests,
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
 	// invoke this function if necessary to provide a web interface.
38
 	// invoke this function if necessary to provide a web interface.
39
 	//
39
 	//
40
 	// If HTTPServer is nil, pprof will use its own internal HTTP server.
40
 	// If HTTPServer is nil, pprof will use its own internal HTTP server.