diff options
author | Li Yao <hnkfliyao@gmail.com> | 2015-07-11 00:49:41 +0800 |
---|---|---|
committer | Li Yao <hnkfliyao@gmail.com> | 2015-07-11 00:49:41 +0800 |
commit | 0aa9281bdf91b8354f138edb175e774ff65d3824 (patch) | |
tree | 83ba01cf1fbfc56668c8ef56b4f5228f01aa00d3 /src/library | |
parent | 52fde52920d93325310e5544991feeea03e5c763 (diff) | |
download | scala-0aa9281bdf91b8354f138edb175e774ff65d3824.tar.gz scala-0aa9281bdf91b8354f138edb175e774ff65d3824.tar.bz2 scala-0aa9281bdf91b8354f138edb175e774ff65d3824.zip |
Fix the bug in the example in scala.sys.process
There's no `!` method with argument type `ProcessIO`. I suppose this is intended to be `run`.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/sys/process/package.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/sys/process/package.scala b/src/library/scala/sys/process/package.scala index b1976ad4b6..141ec07ab4 100644 --- a/src/library/scala/sys/process/package.scala +++ b/src/library/scala/sys/process/package.scala @@ -157,7 +157,7 @@ package scala.sys { * while(input.read() != -1) count += 1 * input.close() * } - * cat ! new ProcessIO(_.close(), byteCounter, _.close()) + * cat run new ProcessIO(_.close(), byteCounter, _.close()) * count * } * |