summaryrefslogtreecommitdiff
path: root/doc/api/readline.md
diff options
context:
space:
mode:
authorGerhard Stoebich <18708370+Flarna@users.noreply.github.com>2019-08-14 22:35:41 +0200
committerRich Trott <rtrott@gmail.com>2019-08-16 21:40:00 -0700
commitf25bbf12556eb5478ea876db825c230d1b1c650c (patch)
tree0bd6181c1c8c8a51545014810480bb36429729c0 /doc/api/readline.md
parent4a2bd69db99c1bb8692e1f653edcb225fbc23032 (diff)
downloadandroid-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.md2
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: