Skip to content

Commit 6780098

Browse files
author
gas
committed
README finished
1 parent f5ee9a2 commit 6780098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ All clocks shares the same API:
3838
- `clock.Now() SomeClock` returns a copy of the current state of the clock;
3939
- `clock.AddTicks(ticks int)` adds the specified number to the internal counter (thread-safe);
4040
- `clock.Tick(requestTime *SomeClock)` moves clock forward, comparing to the incoming value;
41-
- `Compare(a, b *SomeClock)` compares the current states of two clocks, returns -1, 0 or 1;
41+
- `Compare(a, b *SomeClock)` compares the current states of two clocks, returns -1 ("happens before"), 0 ("concurrent") or 1;
4242

4343
### References
4444
- [Martin Fowler's blog](https://martinfowler.com/articles/patterns-of-distributed-systems/)

0 commit comments

Comments
 (0)