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