summaryrefslogtreecommitdiff
path: root/src/library/scala/io/Source.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/io/Source.scala')
-rw-r--r--src/library/scala/io/Source.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/io/Source.scala b/src/library/scala/io/Source.scala
index 03c2e4dc00..b79de507f6 100644
--- a/src/library/scala/io/Source.scala
+++ b/src/library/scala/io/Source.scala
@@ -145,8 +145,8 @@ object Source {
/**
* @param s ...
* @return ...
- * @deprecated use fromURL(s, enc)
*/
+ @deprecated("use fromURL(s, enc)")
def fromURL(s: String): Source =
fromURL(new URL(s))
@@ -158,8 +158,8 @@ object Source {
/**
* @param url the source URL
* @return ...
- * @deprecated use fromURL(url, enc)
*/
+ @deprecated("use fromURL(url, enc)")
def fromURL(url: URL): Source = {
val it = new Iterator[Char] {
var data: Int = _