From 1a110bc1f6f4c01889b9666a9e257e58a7c77578 Mon Sep 17 00:00:00 2001 From: paul-gauthier <69695708+paul-gauthier@users.noreply.github.com> Date: Tue, 26 Dec 2023 20:35:58 -0400 Subject: [PATCH] Update unified-diffs.md --- docs/unified-diffs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/unified-diffs.md b/docs/unified-diffs.md index 81fef9eed..df04830d8 100644 --- a/docs/unified-diffs.md +++ b/docs/unified-diffs.md @@ -235,7 +235,7 @@ even after multiple retries. There are probably a couple of reasons why high level diffs help: -- It's easier to produce diffs that both correctly match the original code and correctly produce the intended new code. There is less risk of GPT getting confused, compared to generating a series of surgical edits mixed into existing code. +- It's easier to produce diffs that both correctly match the original code and correctly produce the intended new code. There is less risk of GPT getting confused, compared to generating a series of surgical edits that interleave lines of old and new code. - High level hunks often contain more lines than a surgical hunk, so they are less likely to accidentally match unrelated parts of code. This is helpful because GPT can't reliably give us line numbers to specify exactly where in the file to make changes. ### Be flexible when applying edits