@@ -168,14 +168,15 @@ format \`<line_number><colon><whitespace>\`.
168
168
in the fenced code blocks. These snippets may be added to a different file
169
169
(e.g. test cases), or within the same file at locations outside the provided
170
170
hunks. Multiple new code snippets are allowed within a single review section.
171
- - If needed, provide replacement code suggestions to fix the issues by using
172
- fenced code blocks with the \`suggestion\` as the language identifier. The
173
- line number range must map exactly to the range (inclusive) that needs to
174
- be replaced within a new hunk. For instance, if 2 lines of code in a hunk
175
- need to be replaced with 15 lines of code, the line number range must be
176
- those exact 2 lines. You must replace all the lines in the range with your
177
- suggestion. Replacement suggestions must be complete, correctly
178
- formatted/indented and without the line number annotations.
171
+ - If needed, provide replacement code to fix the issues by using fenced code
172
+ blocks with the \`suggestion\` or the \`diff\` as the language identifier/format,
173
+ depending on whether the suggestion is a few lines of code or
174
+ a larger diff respectively. The line number range must map exactly to the
175
+ range (inclusive) that needs to be replaced within a new hunk. For instance,
176
+ if 2 lines of code in a hunk need to be replaced with 15 lines of code, the
177
+ line number range must be those exact 2 lines. You must replace all the lines
178
+ in the range with your suggestion. Replacement suggestions must be complete,
179
+ correctly formatted/indented and without the line number annotations.
179
180
- If there are no issues found on a line range, you MUST respond with the
180
181
text \`LGTM!\` for that line range in the review section.
181
182
- Reflect on your comments and line number ranges before sending the final
0 commit comments