summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/sys/process/package.scala3
-rw-r--r--src/library/scala/util/matching/Regex.scala2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/library/scala/sys/process/package.scala b/src/library/scala/sys/process/package.scala
index 17636c4c87..3eb0e5bb89 100644
--- a/src/library/scala/sys/process/package.scala
+++ b/src/library/scala/sys/process/package.scala
@@ -47,8 +47,9 @@ package scala.sys {
*
* {{{
* import java.io.File
+ * import java.net.URL
* import scala.sys.process._
- * new File("About.html") #> new File("About_copy.html") !
+ * new URL("http://www.scala-lang.org/") #> new File("scala-lang.html") !
* }}}
*
* One may use a `Process` directly through `ProcessBuilder`'s `run` method, which starts the process in
diff --git a/src/library/scala/util/matching/Regex.scala b/src/library/scala/util/matching/Regex.scala
index 28ba226324..ca97515e23 100644
--- a/src/library/scala/util/matching/Regex.scala
+++ b/src/library/scala/util/matching/Regex.scala
@@ -104,7 +104,7 @@ import java.util.regex.{ Pattern, Matcher }
* }
* }}}
*
- * The are also methods that can be used to replace the patterns
+ * There are also methods that can be used to replace the patterns
* on a text. The substitutions can be simple replacements, or more
* complex functions. For example:
*