Batch of suggestions, thanks Denis

Co-authored-by: Denis Kasak <dkasak@termina.org.uk>
This commit is contained in:
David Robertson 2022-06-08 18:26:21 +01:00 committed by GitHub
parent 4ecd8a8a24
commit dbf66b93b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,8 +103,8 @@ may be empty, because *e* may not cite an `m.room.power_levels` event in its
Now compare these two lists as follows. Now compare these two lists as follows.
* Find the smallest index *j* ≥ 1 for which *e<sub>j</sub>* belongs to the * Find the smallest index *j* ≥ 1 for which *e<sub>j</sub>* belongs to the
mainline of *P*. mainline of *P*.
* If *j* exists, then *e<sub>j</sub>* = *P<sub>i</sub>* for some unique index * If such a *j* exists, then *e<sub>j</sub>* = *P<sub>i</sub>* for some unique
*i* ≥ 0. Otherwise set *i* = ∞, where ∞ is a sentinel value greater index *i* ≥ 0. Otherwise set *i* = ∞, where ∞ is a sentinel value greater
than any integer. than any integer.
* In both cases, the *position of e in the mainline of P* is *i*. * In both cases, the *position of e in the mainline of P* is *i*.
@ -113,7 +113,7 @@ from smallest to largest, using the following comparison relation on
events: for events *x* and *y*, *x*&lt;*y* if events: for events *x* and *y*, *x*&lt;*y* if
1. the position of *x* in the mainline of *P* is **greater** than 1. the position of *x* in the mainline of *P* is **greater** than
the position of *y* in the mainline of *P*. the position of *y* in the mainline of *P*; or
2. the positions of the events are the same, but *x*'s 2. the positions of the events are the same, but *x*'s
`origin_server_ts` is *less* than *y*'s `origin_server_ts`; or `origin_server_ts` is *less* than *y*'s `origin_server_ts`; or
3. the positions of the events are the same and the events have the 3. the positions of the events are the same and the events have the