From 6fd1c212078b4124e0eae8a5ac7b828d59453201 Mon Sep 17 00:00:00 2001 From: Cnly Date: Thu, 27 Jun 2019 04:48:14 +0800 Subject: [PATCH] Fix docs for SyncPosition.WithUpdates Signed-off-by: Alex Chen --- syncapi/types/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncapi/types/types.go b/syncapi/types/types.go index 5ecede5c7..1ae4b4874 100644 --- a/syncapi/types/types.go +++ b/syncapi/types/types.go @@ -41,8 +41,8 @@ func (sp SyncPosition) IsAfter(other SyncPosition) bool { sp.TypingPosition > other.TypingPosition } -// WithUpdates returns a copy of sp with updates represented by other applied. -// If a fieldn is not 0 in other, it is considered an update. +// WithUpdates returns a copy of `sp` with updates represented by `other` applied. +// If a field is not 0 in `other`, it is considered an update. func (sp SyncPosition) WithUpdates(other SyncPosition) SyncPosition { ret := sp if other.PDUPosition != 0 {