File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,7 @@ func (m *moduleSpec) Get() interface{} {
284
284
285
285
var errVmoduleSyntax = errors .New ("syntax error: expect comma-separated list of filename=N" )
286
286
287
+ // Set will sets module value
287
288
// Syntax: -vmodule=recordio=2,file=1,gfs*=3
288
289
func (m * moduleSpec ) Set (value string ) error {
289
290
var filter []modulePat
@@ -362,6 +363,7 @@ func (t *traceLocation) Get() interface{} {
362
363
363
364
var errTraceSyntax = errors .New ("syntax error: expect file.go:234" )
364
365
366
+ // Set will sets backtrace value
365
367
// Syntax: -log_backtrace_at=gopherflakes.go:234
366
368
// Note that unlike vmodule the file extension is included here.
367
369
func (t * traceLocation ) Set (value string ) error {
Original file line number Diff line number Diff line change @@ -647,7 +647,7 @@ func BenchmarkLogs(b *testing.B) {
647
647
648
648
testFile , err := ioutil .TempFile ("" , "test.log" )
649
649
if err != nil {
650
- b .Error ("unable to create temporary file" )
650
+ b .Fatal ("unable to create temporary file" )
651
651
}
652
652
defer os .Remove (testFile .Name ())
653
653
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ func framesToCaller() int {
104
104
return 1 // something went wrong, this is safe
105
105
}
106
106
107
- // trimDuplicates will deduplicates elements provided in multiple KV tuple
107
+ // trimDuplicates will deduplicate elements provided in multiple KV tuple
108
108
// slices, whilst maintaining the distinction between where the items are
109
109
// contained.
110
110
func trimDuplicates (kvLists ... []interface {}) [][]interface {} {
You can’t perform that action at this time.
0 commit comments