fix: mapPos documentation #6

Merged
nathanlesage merged 1 commit from patch-1 into main 2025-08-01 18:38:38 +02:00
nathanlesage commented 2025-08-01 18:34:53 +02:00 (Migrated from github.com)

I just found a minor error in the documentation for the mapPos function. Specifically, the documentation for the usage of the assoc parameter did not match the implementation. The old documentation stated that the assoc was binarized to zero or negative and positive. However, in the function body, you only check for assoc < 0, effectively binarizing to negative, and zero or positive.

This adapts the documentation for mapPos to truthfully report the usage of the assoc parameter.

I just found a minor error in the documentation for the `mapPos` function. Specifically, the documentation for the usage of the `assoc` parameter did not match the implementation. The old documentation stated that the `assoc` was binarized to zero or negative and positive. However, in the function body, you only check for `assoc < 0`, effectively binarizing to negative, and zero or positive. This adapts the documentation for `mapPos` to truthfully report the usage of the `assoc` parameter.
marijnh commented 2025-08-01 18:38:46 +02:00 (Migrated from github.com)

Thank you for spotting that!

Thank you for spotting that!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/state!6
No description provided.