Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion textdiff/color/color.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion textdiff/textdiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading