Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Stoebich <18708370+Flarna@users.noreply.github.com>2019-08-14 23:35:41 +0300
committerRich Trott <rtrott@gmail.com>2019-08-17 07:40:00 +0300
commitf25bbf12556eb5478ea876db825c230d1b1c650c (patch)
tree0bd6181c1c8c8a51545014810480bb36429729c0 /doc/api/tty.md
parent4a2bd69db99c1bb8692e1f653edcb225fbc23032 (diff)
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/tty.md')
-rw-r--r--doc/api/tty.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/tty.md b/doc/api/tty.md
index 977576970c0..335aef7589b 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: