Skip to content

Commit 6b290a4

Browse files
authored
[manual] Augment eachLine doc
1 parent b69f9d9 commit 6b290a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/manual.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,8 @@ <h3 id="api_content">Content manipulation methods</h3>
13201320
and <code>end</code> line numbers are given, the range
13211321
from <code>start</code> up to (not including) <code>end</code>,
13221322
and call <code>f</code> for each line, passing the line handle.
1323+
<code>eachLine</code> stops iterating if <code>f</code> returns
1324+
truthy value.
13231325
This is a faster way to visit a range of line handlers than
13241326
calling <a href="#getLineHandle"><code>getLineHandle</code></a>
13251327
for each of them. Note that line handles have

0 commit comments

Comments
 (0)