]> Cypherpunks.ru repositories - gostls13.git/commitdiff
internal/diff: add missing 'as' in comment
authorJes Cok <xigua67damn@gmail.com>
Wed, 1 Nov 2023 12:09:18 +0000 (12:09 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 8 Nov 2023 14:13:04 +0000 (14:13 +0000)
Change-Id: I40b9bc55744f6db5332d49dd47c8a4e409ecd9f3
GitHub-Last-Rev: c58c8ecde83c0eae88742a6785819e6cdc0dce21
GitHub-Pull-Request: golang/go#63870
Reviewed-on: https://go-review.googlesource.com/c/go/+/538862
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: qiulaidongfeng <2645477756@qq.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/internal/diff/diff.go

index 0aeeb75eb096cb90437ddb0800463f82a33d52bd..6a40b23fcbf0229ddc05c2bedf6d5d5d1e9c1ca5 100644 (file)
@@ -74,7 +74,7 @@ func Diff(oldName string, old []byte, newName string, new []byte) []byte {
                        continue
                }
 
-               // Expand matching lines as far possible,
+               // Expand matching lines as far as possible,
                // establishing that x[start.x:end.x] == y[start.y:end.y].
                // Note that on the first (or last) iteration we may (or definitely do)
                // have an empty match: start.x==end.x and start.y==end.y.