From dfcc04a9770ea6ca506f84a840c92ee02e66acae Mon Sep 17 00:00:00 2001 From: Joost-Wim Boekesteijn <joost-wim@boekesteijn.nl> Date: Tue, 14 Aug 2012 16:39:35 +0200 Subject: [PATCH] Make documentation reflect peek()'s behaviour. String.prototype.charAt returns '' (empty string) for characters outside the range of the string. --- doc/manual.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/manual.html b/doc/manual.html index 57bbfaac3..6b4dc8c7b 100644 --- a/doc/manual.html +++ b/doc/manual.html @@ -1013,8 +1013,7 @@ <dt><code>peek() → character</code></dt> <dd>Returns the next character in the stream without advancing - it. Will return <code>undefined</code> at the end of the - line.</dd> + it. Will return an empty string at the end of the line.</dd> <dt><code>next() → character</code></dt> <dd>Returns the next character in the stream and advances it. Also returns <code>undefined</code> when no more characters are -- GitLab