From 4afe7c77148285fb2ee3db1cd0dddecf32b99cbb Mon Sep 17 00:00:00 2001 From: "Daniel C. Sobral" Date: Mon, 19 Sep 2011 11:25:28 -0300 Subject: [PATCH] Move an example to the correct method. --- src/library/scala/sys/process/Process.scala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/library/scala/sys/process/Process.scala b/src/library/scala/sys/process/Process.scala index 45be7b2f4..eb452481b 100644 --- a/src/library/scala/sys/process/Process.scala +++ b/src/library/scala/sys/process/Process.scala @@ -156,14 +156,6 @@ trait ProcessCreation { * [[scala.sys.process.ProcessBuilder.Source]], which can then be * piped to something else. * - * This will concatenate the output of all sources. - */ - def cat(file: Source, files: Source*): ProcessBuilder = cat(file +: files) - - /** Create a [[scala.sys.process.ProcessBuilder]] from a non-empty sequence - * of [[scala.sys.process.ProcessBuilder.Source]], which can then be - * piped to something else. - * * This will concatenate the output of all sources. For example: * * {{{ @@ -178,6 +170,14 @@ trait ProcessCreation { * cat(spde, dispatch, build) #| "grep -i scala" ! * }}} */ + def cat(file: Source, files: Source*): ProcessBuilder = cat(file +: files) + + /** Create a [[scala.sys.process.ProcessBuilder]] from a non-empty sequence + * of [[scala.sys.process.ProcessBuilder.Source]], which can then be + * piped to something else. + * + * This will concatenate the output of all sources. + */ def cat(files: Seq[Source]): ProcessBuilder = { require(files.nonEmpty) files map (_.cat) reduceLeft (_ #&& _)