Skip to content

Commit f1bfdab

Browse files
committed
cr
1 parent ef65eb2 commit f1bfdab

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

experimental/parser/diagnostics_internal.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,8 @@ type justified struct {
149149
// 1. Surrounded on both sides by at least once space. (justifyBetween)
150150
// 2. Has no whitespace to its left or its right. (justifyLeft, justifyRight)
151151
//
152-
// This is necessary in order to generate sensible suggestions in a number of
153-
// cases.
154-
//
155-
// # Case 1: Inserting an equals sign.
152+
// See the comments on doJustify* for details on the different cases this
153+
// function handles.
156154
func justify(stream *token.Stream, span report.Span, message string, edits ...justified) report.DiagnosticOption {
157155
for i := range edits {
158156
switch edits[i].justify {

experimental/token/cursor.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ func (c *Cursor) IsSynthetic() bool {
7777
// Clone returns a copy of this cursor, which allows performing operations on
7878
// it without mutating the original cursor.
7979
func (c *Cursor) Clone() *Cursor {
80-
//nolint:revive,stylecheck // The type here is explicit to show a copy actually happens.
81-
var clone Cursor = *c
80+
clone := *c
8281
return &clone
8382
}
8483

0 commit comments

Comments
 (0)