diff options
Diffstat (limited to 'core/hunks.zig')
| -rw-r--r-- | core/hunks.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/hunks.zig b/core/hunks.zig index 98584980..bee06cc2 100644 --- a/core/hunks.zig +++ b/core/hunks.zig @@ -80,7 +80,10 @@ pub const Ctx = struct { pub const Source = struct { path: []const u8, bytes: []const u8 }; /// A diff stacked: its text, and a row for each of its lines (row i is -/// line i), the arena's; a row's path may be the diff's own bytes. +/// line i), the arena's; a row's path may be the diff's own bytes. A row's +/// text is its line without its end, the `\n` and a `\r` before it: a CRLF +/// diff's rows have no `\r` (one that must show it reads it off the diff), +/// and a source's lines are compared with the diff's so too. pub const Patch = struct { text: []const u8, rows: []const Row }; pub const Row = struct { |
