aboutsummaryrefslogtreecommitdiff
path: root/doc
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
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')
-rw-r--r--doc/api/readline.md2
-rw-r--r--doc/api/tty.md2
2 files changed, 2 insertions, 2 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:
diff --git a/doc/api/tty.md b/doc/api/tty.md
index 977576970c..335aef7589 100644
--- a/doc/api/tty.md
+++ b/doc/api/tty.md
@@ -145,7 +145,7 @@ added: v0.7.7
A `number` specifying the number of columns the TTY currently has. This property
is updated whenever the `'resize'` event is emitted.
-### writeStream.cursorTo(x, y[, callback])
+### writeStream.cursorTo(x[, y][, callback])
<!-- YAML
added: v0.7.7
changes: