Browse Source

Fix typos (#237)

Boris Nagaev 7 years ago
parent
commit
d78d1eaf2b
3 changed files with 4 additions and 4 deletions
  1. 1
    1
      internal/driver/driver_test.go
  2. 2
    2
      internal/graph/graph_test.go
  3. 1
    1
      internal/symbolz/symbolz.go

+ 1
- 1
internal/driver/driver_test.go View File

42
 	pprofCommands["weblist"].postProcess = nil
42
 	pprofCommands["weblist"].postProcess = nil
43
 
43
 
44
 	// Our mockObjTool.Open will always return success, causing
44
 	// Our mockObjTool.Open will always return success, causing
45
-	// driver.locateBinaries to "find" the binaries below in a non-existant
45
+	// driver.locateBinaries to "find" the binaries below in a non-existent
46
 	// directory. As a workaround, point the search path to the fake
46
 	// directory. As a workaround, point the search path to the fake
47
 	// directory containing out fake binaries.
47
 	// directory containing out fake binaries.
48
 	savePath := os.Getenv("PPROF_BINARY_PATH")
48
 	savePath := os.Getenv("PPROF_BINARY_PATH")

+ 2
- 2
internal/graph/graph_test.go View File

171
 	}
171
 	}
172
 }
172
 }
173
 
173
 
174
-// createTestCase1 creates a test case that initally looks like:
174
+// createTestCase1 creates a test case that initially looks like:
175
 //     0
175
 //     0
176
 //     |(5)
176
 //     |(5)
177
 //     1
177
 //     1
255
 	}
255
 	}
256
 }
256
 }
257
 
257
 
258
-// createTestCase3 creates an initally empty graph and expects an empty graph
258
+// createTestCase3 creates an initially empty graph and expects an empty graph
259
 // after trimming.
259
 // after trimming.
260
 func createTestCase3() trimTreeTestcase {
260
 func createTestCase3() trimTreeTestcase {
261
 	graph := &Graph{make(Nodes, 0)}
261
 	graph := &Graph{make(Nodes, 0)}

+ 1
- 1
internal/symbolz/symbolz.go View File

83
 
83
 
84
 // symbolizeMapping symbolizes locations belonging to a Mapping by querying
84
 // symbolizeMapping symbolizes locations belonging to a Mapping by querying
85
 // a symbolz handler. An offset is applied to all addresses to take care of
85
 // a symbolz handler. An offset is applied to all addresses to take care of
86
-// normalization occured for merged Mappings.
86
+// normalization occurred for merged Mappings.
87
 func symbolizeMapping(source string, offset int64, syms func(string, string) ([]byte, error), m *profile.Mapping, p *profile.Profile) error {
87
 func symbolizeMapping(source string, offset int64, syms func(string, string) ([]byte, error), m *profile.Mapping, p *profile.Profile) error {
88
 	// Construct query of addresses to symbolize.
88
 	// Construct query of addresses to symbolize.
89
 	var a []string
89
 	var a []string