diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-01-11 16:09:36 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-01-11 16:09:36 +0000 |
commit | 998a7b758fc4dc573abdeae0adc301623b393507 (patch) | |
tree | 086d518dd18eeb1b1c4824f40207f25dbdcf9586 /src/library | |
parent | 250b45a1246a1e83e76cabd5e5251510ae3074ee (diff) | |
download | scala-998a7b758fc4dc573abdeae0adc301623b393507.tar.gz scala-998a7b758fc4dc573abdeae0adc301623b393507.tar.bz2 scala-998a7b758fc4dc573abdeae0adc301623b393507.zip |
Fixed #2810.
no review
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/io/Source.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/io/Source.scala b/src/library/scala/io/Source.scala index e5cf73ff44..e88bfd0bf1 100644 --- a/src/library/scala/io/Source.scala +++ b/src/library/scala/io/Source.scala @@ -313,7 +313,7 @@ abstract class Source extends Iterator[Char] } /** The close() method closes the underlying resource. */ - def close: Unit = + def close(): Unit = if (closeFunction != null) closeFunction() /** The reset() method creates a fresh copy of this Source. */ |