mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Fix docs for SyncPosition.WithUpdates
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
aeceacd917
commit
6fd1c21207
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue