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
path: root/doc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-11-08 04:22:36 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-11-08 04:22:56 +0300
commitc6029c75a4636099fc35f2e0b904385dda58eb1f (patch)
tree39d60ebf8c8d9736793afd82608774b0b7d5ebca /doc
parent07da49b095553bf440dab05072755343afbdc461 (diff)
Remove util.print from docs
Use process.stdout.write()
Diffstat (limited to 'doc')
-rw-r--r--doc/api/_toc.markdown2
-rw-r--r--doc/api/all.markdown2
-rw-r--r--doc/api/appendix_1.markdown2
-rw-r--r--doc/api/child_processes.markdown14
-rw-r--r--doc/api/index.markdown2
-rw-r--r--doc/api/util.markdown7
6 files changed, 11 insertions, 18 deletions
diff --git a/doc/api/_toc.markdown b/doc/api/_toc.markdown
index a5e384c4b1a..496a6118bf0 100644
--- a/doc/api/_toc.markdown
+++ b/doc/api/_toc.markdown
@@ -30,4 +30,4 @@
* [Assertion Testing](assert.html)
* Appendixes
* [Appendix 1: Recommended Third-party Modules](appendix_1.html)
- * [Appendix 2: Deprecated API's](appendix_2.html) \ No newline at end of file
+ * [Appendix 2: Deprecated API's](appendix_2.html)
diff --git a/doc/api/all.markdown b/doc/api/all.markdown
index a6eb173e29d..43d5a15f7c5 100644
--- a/doc/api/all.markdown
+++ b/doc/api/all.markdown
@@ -30,4 +30,4 @@
# Appendixes
@include appendix_1
-@include appendix_2 \ No newline at end of file
+@include appendix_2
diff --git a/doc/api/appendix_1.markdown b/doc/api/appendix_1.markdown
index 53e9ee7370f..3274fdacd38 100644
--- a/doc/api/appendix_1.markdown
+++ b/doc/api/appendix_1.markdown
@@ -41,4 +41,4 @@ elsewhere.
[expresso](http://github.com/visionmedia/expresso),
[mjsunit.runner](http://github.com/tmpvar/mjsunit.runner)
-Patches to this list are welcome. \ No newline at end of file
+Patches to this list are welcome.
diff --git a/doc/api/child_processes.markdown b/doc/api/child_processes.markdown
index 440a83a3056..d186a94d9d0 100644
--- a/doc/api/child_processes.markdown
+++ b/doc/api/child_processes.markdown
@@ -74,11 +74,11 @@ Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit cod
ls = spawn('ls', ['-lh', '/usr']);
ls.stdout.on('data', function (data) {
- util.print('stdout: ' + data);
+ console.log('stdout: ' + data);
});
ls.stderr.on('data', function (data) {
- util.print('stderr: ' + data);
+ console.log('stderr: ' + data);
});
ls.on('exit', function (code) {
@@ -98,7 +98,7 @@ Example: A very elaborate way to run 'ps ax | grep ssh'
});
ps.stderr.on('data', function (data) {
- util.print('ps stderr: ' + data);
+ console.log('ps stderr: ' + data);
});
ps.on('exit', function (code) {
@@ -109,11 +109,11 @@ Example: A very elaborate way to run 'ps ax | grep ssh'
});
grep.stdout.on('data', function (data) {
- util.print(data);
+ console.log(data);
});
grep.stderr.on('data', function (data) {
- util.print('grep stderr: ' + data);
+ console.log('grep stderr: ' + data);
});
grep.on('exit', function (code) {
@@ -148,8 +148,8 @@ output, and return it all in a callback.
child = exec('cat *.js bad_file | wc -l',
function (error, stdout, stderr) {
- util.print('stdout: ' + stdout);
- util.print('stderr: ' + stderr);
+ console.log('stdout: ' + stdout);
+ console.log('stderr: ' + stderr);
if (error !== null) {
console.log('exec error: ' + error);
}
diff --git a/doc/api/index.markdown b/doc/api/index.markdown
index a9acffa2965..1a774507aef 100644
--- a/doc/api/index.markdown
+++ b/doc/api/index.markdown
@@ -1 +1 @@
-@include _toc.markdown \ No newline at end of file
+@include _toc.markdown
diff --git a/doc/api/util.markdown b/doc/api/util.markdown
index cddf47d867b..1c077f6ef2b 100644
--- a/doc/api/util.markdown
+++ b/doc/api/util.markdown
@@ -4,13 +4,6 @@ These functions are in the module `'util'`. Use `require('util')` to access
them.
-### util.print(string)
-
-Like `console.log()` but without the trailing newline.
-
- require('util').print('String with no newline');
-
-
### util.debug(string)
A synchronous output function. Will block the process and