From f98fa530b486f07d6ced8f2bbb6ac1332b9ac9ef Mon Sep 17 00:00:00 2001 From: Stefan VanBuren Date: Fri, 13 Mar 2026 10:40:32 -0400 Subject: [PATCH] Fix doc comment references Noticed that since the shuffle, the one comment needs a link now (to avoid a circular dependency), and one was referencing a removed option. --- textdiff/color/color.go | 4 +++- textdiff/textdiff.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/textdiff/color/color.go b/textdiff/color/color.go index 68415fa..2003946 100644 --- a/textdiff/color/color.go +++ b/textdiff/color/color.go @@ -20,7 +20,9 @@ import ( "znkr.io/diff/internal/config" ) -// A Option makes it possible to configure custom colors in [TerminalColors]. +// A Option makes it possible to configure custom colors in [textdiff.TerminalColors]. +// +// [textdiff.TerminalColors]: https://pkg.go.dev/znkr.io/diff/textdiff#TerminalColors type Option func(*config.ColorConfig) // HunkHeaders colors hunk headers, the "@@ ... @@" part of the unified diff. diff --git a/textdiff/textdiff.go b/textdiff/textdiff.go index 29e25c4..861cfaf 100644 --- a/textdiff/textdiff.go +++ b/textdiff/textdiff.go @@ -18,7 +18,7 @@ // diff command. The main functions are [Hunks] for grouped changes, [Edits] for individual changes, // and [Unified] for standard diff format output. // -// Performance: Default complexity is O(N^1.5 log N) time and O(N) space. With [Optimal], time +// Performance: Default complexity is O(N^1.5 log N) time and O(N) space. With [diff.Minimal], time // complexity becomes O(ND) where N = len(x) + len(y) and D is the number of edits. package textdiff