diff options
author | buraq <buraq@epfl.ch> | 2005-04-12 09:15:50 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2005-04-12 09:15:50 +0000 |
commit | 51dfe805f40b6f48001a44c1dc6fb4fb35a841bb (patch) | |
tree | 8a71b77b30376d055ec8f224a24cc80ff6b0f808 | |
parent | 60e9413f4a50ecda1cb9836128a3500c1ba70c81 (diff) | |
download | scala-51dfe805f40b6f48001a44c1dc6fb4fb35a841bb.tar.gz scala-51dfe805f40b6f48001a44c1dc6fb4fb35a841bb.tar.bz2 scala-51dfe805f40b6f48001a44c1dc6fb4fb35a841bb.zip |
better comment
-rw-r--r-- | sources/scala/io/Source.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/scala/io/Source.scala b/sources/scala/io/Source.scala index fadcc9ef66..675c5d8098 100644 --- a/sources/scala/io/Source.scala +++ b/sources/scala/io/Source.scala @@ -86,8 +86,9 @@ abstract class Source extends Iterator[Char] { val tabinc = 4; protected val iter: Iterator[Char]; - /** returns next characters, updates positions and assigns the character - * ch as side effect + + /** returns next character and has the following side-effects: updates + * position (ccol and cline) and assigns the character to ch */ def next = { ch = iter.next; @@ -103,6 +104,7 @@ abstract class Source extends Iterator[Char] { } ch }; + /** returns true if this source has more characters */ def hasNext = iter.hasNext; |