diff options
author | Gerhard Stoebich <18708370+Flarna@users.noreply.github.com> | 2019-08-14 22:35:41 +0200 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-08-16 21:40:00 -0700 |
commit | f25bbf12556eb5478ea876db825c230d1b1c650c (patch) | |
tree | 0bd6181c1c8c8a51545014810480bb36429729c0 /doc/api/readline.md | |
parent | 4a2bd69db99c1bb8692e1f653edcb225fbc23032 (diff) | |
download | android-node-v8-f25bbf12556eb5478ea876db825c230d1b1c650c.tar.gz android-node-v8-f25bbf12556eb5478ea876db825c230d1b1c650c.tar.bz2 android-node-v8-f25bbf12556eb5478ea876db825c230d1b1c650c.zip |
readline: establish y in cursorTo as optional
Parameter y in cursorTo() is optional and this is also verified by
tests but docs don't state this. Besides that if the newly added
parameter callback is used with no y, it's quite unhandy. This PR allows
to simply omit y.
PR-URL: https://github.com/nodejs/node/pull/29128
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc/api/readline.md')
-rw-r--r-- | doc/api/readline.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/readline.md b/doc/api/readline.md index 47dfad8dab..43d3a7e8f6 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -487,7 +487,7 @@ function completer(linePartial, callback) { } ``` -## readline.cursorTo(stream, x, y[, callback]) +## readline.cursorTo(stream, x[, y][, callback]) <!-- YAML added: v0.7.7 changes: |