From ed6d30c84952ea107b6f29fa97ee93acbb8ac3f9 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 17 Dec 2023 18:25:29 -0800 Subject: [PATCH] copy --- docs/unified-diffs.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/unified-diffs.md b/docs/unified-diffs.md index c4ea92c83..50418bc59 100644 --- a/docs/unified-diffs.md +++ b/docs/unified-diffs.md @@ -92,7 +92,7 @@ default output format of `git diff`: ``` Choosing such a familiar, popular output format means that GPT has -seen *many* examples in its training dat. +seen *many* examples in its training data. It's been trained to generate text that conforms to the unified diff syntax. @@ -196,7 +196,6 @@ Consider this slightly more complex change, which renames the variable `n` to -def factorial(n): +def factorial(number): "compute factorial" - - if n == 0: + if number == 0: return 1 @@ -214,14 +213,12 @@ but it is much easier to see two different coherent versions of the @@ ... @@ -def factorial(n): - "compute factorial" -- - if n == 0: - return 1 - else: - return n * factorial(n-1) +def factorial(number): + "compute factorial" -+ + if number == 0: + return 1 + else: