Commit cb7010d1 authored by Robert Knight's avatar Robert Knight

Add descriptions of `startOfLine` and `endOfLine` helpers

parent 754d39eb
......@@ -174,6 +174,8 @@ export function toggleSpanStyle(state, prefix, suffix, placeholder) {
}
/**
* Find the nearest line beginning searching backwards from `pos`.
*
* @param {string} str
* @param {number} pos
*/
......@@ -187,6 +189,8 @@ function startOfLine(str, pos) {
}
/**
* Find the nearest line ending searching forwards from `pos`.
*
* @param {string} str
* @param {number} pos
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment