summaryrefslogtreecommitdiff
path: root/src/HTML5
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTML5')
-rw-r--r--src/HTML5/Parser/Scanner.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/HTML5/Parser/Scanner.php b/src/HTML5/Parser/Scanner.php
index 33621fd..0260391 100644
--- a/src/HTML5/Parser/Scanner.php
+++ b/src/HTML5/Parser/Scanner.php
@@ -36,7 +36,10 @@ class Scanner {
}
/**
- * Take a peek at the next character in the data.
+ * Take a peek at the character after the next character in the data.
+ *
+ * For example, you start scanning the string abc. The pointer is before a.
+ * When you start peek() will return b while next() will return a.
*
* @return string
* The next character.