summaryrefslogtreecommitdiff
path: root/ext/stringio
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-04 04:14:37 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-04 04:14:37 +0000
commit39802186b2135cce68882770aa36dc09ad6cb311 (patch)
treeec6dff1eef7ef8abf23cd7ae11252432b4d2eccb /ext/stringio
parentd5e1b514f9113ac0f706bb46b8a20a1dd5ec7390 (diff)
* ext/stringio/stringio.c (ungetc): RDoc updated. trunk allows
pushing back behind the beginning of the pseudo stream. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/stringio')
-rw-r--r--ext/stringio/stringio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 802c462..f193c6e 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -696,10 +696,9 @@ strio_extend(struct StringIO *ptr, long pos, long len)
* strio.ungetc(string) -> nil
*
* Pushes back one character (passed as a parameter) onto *strio*
- * such that a subsequent buffered read will return it. Pushing back
- * behind the beginning of the buffer string is not possible. Nothing
- * will be done if such an attempt is made.
- * In other case, there is no limitation for multiple pushbacks.
+ * such that a subsequent buffered read will return it. There is no
+ * limitation for multiple pushbacks including pushing back behind the
+ * beginning of the buffer string.
*/
static VALUE
strio_ungetc(VALUE self, VALUE c)