Skip to content

Commit fc068ed

Browse files
authored
Fix mapPos documentation
This adapts the documentation for `mapPos` to truthfully report the usage of the `assoc` parameter.
1 parent 83ce34d commit fc068ed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/change.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ export class ChangeDesc {
106106
/// position pointing into the new document.
107107
///
108108
/// `assoc` indicates which side the position should be associated
109-
/// with. When it is negative or zero, the mapping will try to keep
110-
/// the position close to the character before it (if any), and will
109+
/// with. When it is negative, the mapping will try to keep the
110+
/// position close to the character before it (if any), and will
111111
/// move it before insertions at that point or replacements across
112-
/// that point. When it is positive, the position is associated with
113-
/// the character after it, and will be moved forward for insertions
114-
/// at or replacements across the position. Defaults to -1.
112+
/// that point. When it is zero or positive, the position is associated
113+
/// with the character after it, and will be moved forward for
114+
// insertions at or replacements across the position. Defaults to -1.
115115
///
116116
/// `mode` determines whether deletions should be
117117
/// [reported](#state.MapMode). It defaults to

0 commit comments

Comments
 (0)