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 {