From 45facc88221248804a20ac9cf840475cb8f88786 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 23 Apr 2017 03:12:22 +0300 Subject: [PATCH] doc: fix an unclear wording in readline.md PR-URL: https://github.com/nodejs/node/pull/12605 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- doc/api/readline.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/readline.md b/doc/api/readline.md index acd052bb1a5a68..cbb167b78de163 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -403,8 +403,8 @@ a `'resize'` event on the `output` if or when the columns ever change ### Use of the `completer` Function -When called, the `completer` function is provided the current line entered by -the user, and is expected to return an Array with 2 entries: +The `completer` function takes the current line entered by the user +as an argument, and returns an Array with 2 entries: * An Array with matching entries for the completion. * The substring that was used for the matching.