Skip to content

Commit 132620a

Browse files
authored
Correct description of fix-it line numbers
1 parent 1717935 commit 132620a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Diagnostics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ An expected diagnostic is denoted by a comment which begins with `expected-error
156156

157157
* Insertions are represented by identical start and end locations: `{{3-3=@objc }}`. Deletions are represented by empty replacement text: `{{3-9=}}`.
158158

159-
* Line offsets are also permitted; for instance, `{{-1:12-+1:42=}}` would specify a fix-it that deleted everything between column 12 on the previous line and column 42 on the next line. (The second location could just be written as `1:42` and would mean the same thing.)
159+
* Line offsets are also permitted; for instance, `{{-1:12-+1:42=}}` would specify a fix-it that deleted everything between column 12 on the previous line and column 42 on the next line. (If the sign is omitted, it specifies an absolute line number, not an offset.)
160160

161161
* By default, the verifier ignores any fix-its that are *not* expected; the special `{{none}}` specifier tells it to verify that the diagnostic it's attached to has *only* the fix-its specified and no others.
162162

0 commit comments

Comments
 (0)