doc: add prompt to fix repl_test.js example
authorDan Kohn <dan@dankohn.com>
Tue, 12 Feb 2013 20:04:23 +0000 (15:04 -0500)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 13 Feb 2013 15:40:27 +0000 (16:40 +0100)
commit2e1ebbf2c54585e67ec71d73b8a7f94214077368
treeecebd0be1b9580f3eb09a61239b48b4136cce75b
parent82ad5fbe9aa862f0500b63ea2d739991ede74f48
doc: add prompt to fix repl_test.js example

Running repl.start without the prompt set produces this error:

repl.js:95
    throw new Error('An options Object, or a prompt String are required');
          ^
Error: An options Object, or a prompt String are required
    at new REPLServer (repl.js:95:11)
    at Object.exports.start (repl.js:321:14)
    at Object.<anonymous> (/Users/dan/Dropbox/Documents/dev/nextgen/repl_test.js:5:6)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
doc/api/repl.markdown