doc: some fixes in repl.md#10244
doc: some fixes in repl.md#10244vsemozhetbyt wants to merge 6 commits intonodejs:masterfrom vsemozhetbyt:repl.md
Conversation
Add an infix space in an argument list. Change `>` into `> ` in code bits and output examples. Explicitly clarify that default REPL prompt contains a trailing space.
Make `_` reassignment example match more with the current output. Extend the example for more clarity.
`eval` => `myEval` to not shadow the global `eval`
Replaced with an object shorthand and an arrow function.
|
/cc @nodejs/documentation |
|
@addaleax, @eljefedelrodeodeljefe, @lance, you had reviewed the previous ill-fated PR. If anybody has the time, could you please look at this? Sorry for the disturbing. |
doc/api/repl.md
Outdated
There was a problem hiding this comment.
The , here doesn’t seem quite right to me?
There was a problem hiding this comment.
@addaleax Do you mean "let, or var"? It is a @lance's sentence. It seems he uses Oxford comma here. Should I change it to "let or var"?
Or do you mean another comma?
There was a problem hiding this comment.
Oh, sorry. I mean the one after implicitly… the Oxford comma after let seems okay here :)
There was a problem hiding this comment.
Amended with the last commit. Thank you :)
The current autoinserted link leads to 404 page.
|
@addaleax, @jasnell, @thefourtheye Could this be landed? |
PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add an infix space in an argument list. Change `>` into `> ` in code bits and output examples. Explicitly clarify that default REPL prompt contains a trailing space. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Make `_` reassignment example match more with the current output. Extend the example for more clarity. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
`eval` => `myEval` to not shadow the global `eval` PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Replaced with an object shorthand and an arrow function. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
The current autoinserted link leads to 404 page. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
@vsemozhetbyt Thanks for the ping! Landed in 45c9ca7...f501178. |
PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add an infix space in an argument list. Change `>` into `> ` in code bits and output examples. Explicitly clarify that default REPL prompt contains a trailing space. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Make `_` reassignment example match more with the current output. Extend the example for more clarity. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
`eval` => `myEval` to not shadow the global `eval` PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Replaced with an object shorthand and an arrow function. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
The current autoinserted link leads to 404 page. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add an infix space in an argument list. Change `>` into `> ` in code bits and output examples. Explicitly clarify that default REPL prompt contains a trailing space. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Make `_` reassignment example match more with the current output. Extend the example for more clarity. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
`eval` => `myEval` to not shadow the global `eval` PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Replaced with an object shorthand and an arrow function. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
The current autoinserted link leads to 404 page. PR-URL: #10244 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Would someone be willing to manually backport these changes to v6.x? |
Checklist
Affected core subsystem(s)
doc, repl
Description of change
var=>let/const.White space unification (add an infix space in an argument list; change
>into>(with a trailing space) in code bits and output examples; explicitly clarify that default REPL prompt contains a trailing space).Fix an output example (make
_reassignment example match with the current output; extend the example for more clarity).Fix a function name (
eval=>myEvalto not shadow the globaleval).Replace anonymous functions with an object shorthand and an arrow function.
Add the valid link for curl(1) (The current autoinserted link leads to 404 page).
I am sorry I've messed up the previous PR by an inexperienced rebasing during resolving a conflict. Excuse me for wasting your time.