Skip to content

Commit 06836c8

Browse files
committed
Fix typos in comments
1 parent ca59e56 commit 06836c8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

contexttags_api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
// WithContextTags captures the k/v pairs stored in the context via the
2525
// `logtags` package and annotates them on the error.
2626
//
27-
// Only the stromg representation of values remains available. This is
27+
// Only the strong representation of values remains available. This is
2828
// because the library cannot guarantee that the underlying value is
2929
// preserved across the network. To avoid creating a stateful interface
3030
// (where the user code needs to know whether an error has traveled

errbase/format_error.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ type state struct {
648648

649649
// entries collect the result of formatRecursive(). They are
650650
// consumed by formatSingleLineOutput() and formatEntries() to
651-
// procude the contents of finalBuf.
651+
// produce the contents of finalBuf.
652652
entries []formatEntry
653653

654654
// buf collects the details of the current error object at a given
@@ -928,7 +928,7 @@ func (s *safePrinter) enhanceArgs(args []interface{}) {
928928
args[i] = redact.Safe(thisStack)
929929
lastSeen = st
930930
}
931-
// In contrast with (*printer).enhanceArgs(), we dont use a
931+
// In contrast with (*printer).enhanceArgs(), we don't use a
932932
// special case for `error` here, because the redact package
933933
// already helps us recursing into a safe print for
934934
// error objects.

report/report.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import (
3838
// Title: (1) some prefix in bold (2) one line for a stack trace
3939
// (3) a single-line subtitle
4040
//
41-
// (4) the tags, as a tag soup (concatenated in a single paragrah,
41+
// (4) the tags, as a tag soup (concatenated in a single paragraph,
4242
// unsorted)
4343
//
4444
// (5) a "message"
@@ -66,7 +66,7 @@ import (
6666
// (3) the Value field of the 1st Exception object, if any, unwrapped as a single line
6767
// (4) the Tags field
6868
// (5) the Message field
69-
// (7) the Type field (same as (1) for 1st execption)
69+
// (7) the Type field (same as (1) for 1st exception)
7070
// (8) the Value field (same as (3) for 1st exception)
7171
// (9) the Stacktrace field (input to (2) on 1st exception)
7272
// (10) the other fields on the Event object
@@ -296,7 +296,7 @@ func BuildSentryReport(err error) (event *sentry.Event, extraDetails map[string]
296296
event.Message = longMsgBuf.String()
297297
event.Exception = exceptions
298298

299-
// If there is no exception payload, synthetize one.
299+
// If there is no exception payload, synthesize one.
300300
if len(event.Exception) == 0 {
301301
// We know we don't have a stack trace to extract line/function
302302
// info from (if we had, we'd have an Exception payload at that

report_api.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
// Title: (1) some prefix in bold (2) one line for a stack trace
3333
// (3) a single-line subtitle
3434
//
35-
// (4) the tags, as a tag soup (concatenated in a single paragrah,
35+
// (4) the tags, as a tag soup (concatenated in a single paragraph,
3636
// unsorted)
3737
//
3838
// (5) a "message"
@@ -57,7 +57,7 @@ import (
5757
// (3) the Value field of the 1st Exception object, if any, unwrapped as a single line
5858
// (4) the Tags field
5959
// (5) the Message field
60-
// (7) the Type field (same as (1) for 1st execption)
60+
// (7) the Type field (same as (1) for 1st exception)
6161
// (8) the Value field (same as (3) for 1st exception)
6262
// (9) the Stacktrace field (input to (2) on 1st exception)
6363
// (10) the other fields on the Event object

0 commit comments

Comments
 (0)