diff options
author | Danny Nemer <hi@DannyNemer.com> | 2017-03-20 18:30:41 -0400 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-03-22 08:56:24 -0700 |
commit | c8eec76c5fa7a31794380d1a56ccdb722cd7da5e (patch) | |
tree | 47d67955f3c6df3dac9913e298554913f20a658d /doc | |
parent | e26b6c6baa297580ecb49df9d2d869bc181ac7fe (diff) | |
download | android-node-v8-c8eec76c5fa7a31794380d1a56ccdb722cd7da5e.tar.gz android-node-v8-c8eec76c5fa7a31794380d1a56ccdb722cd7da5e.tar.bz2 android-node-v8-c8eec76c5fa7a31794380d1a56ccdb722cd7da5e.zip |
readline: rename `deDupeHistory` option
Renames `options.deDupeHistory` → `options.removeHistoryDuplicates` for
`readline.createInterface(options)`.
The option name `removeHistoryDuplicates` is preferable to the
semantically identical name `deDupeHistory` because "dedupe" (short for
"deduplication") is obscure and neologistic while
`removeHistoryDuplicates` is clear, though verbose.
Updates tests and documentation for this option accordingly.
PR-URL: https://github.com/nodejs/node/pull/11950
Ref: https://github.com/nodejs/node/pull/2982
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/readline.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/readline.md b/doc/api/readline.md index e471daecae..acd052bb1a 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -370,9 +370,9 @@ changes: `crlfDelay` milliseconds, both `\r` and `\n` will be treated as separate end-of-line input. Default to `100` milliseconds. `crlfDelay` will be coerced to `[100, 2000]` range. - * `deDupeHistory` {boolean} If `true`, when a new input line added to the - history list duplicates an older one, this removes the older line from the - list. Defaults to `false`. + * `removeHistoryDuplicates` {boolean} If `true`, when a new input line added + to the history list duplicates an older one, this removes the older line + from the list. Defaults to `false`. The `readline.createInterface()` method creates a new `readline.Interface` instance. |