summaryrefslogtreecommitdiff
path: root/core/tape.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/tape.zig')
-rw-r--r--core/tape.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/tape.zig b/core/tape.zig
index a2cd1e3d..e0bc95e7 100644
--- a/core/tape.zig
+++ b/core/tape.zig
@@ -491,7 +491,9 @@ pub const Tape = struct {
return bytes;
}
- fn diverge(t: *Tape, comptime why: []const u8, args: anytype) void {
+ /// A replay came to another state than the authority's (`why`, the
+ /// first said): its replica joins again.
+ pub fn diverge(t: *Tape, comptime why: []const u8, args: anytype) void {
if (t.diverged != null) return;
t.diverged = std.fmt.allocPrint(t.gpa, why ++ " (tape byte {d}, in {s})", args ++ .{ t.in.at, t.applying }) catch why;
}