From 786cf6581c6e50ce26aae3abe82749bac5141cb4 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 30 Dec 2007 09:19:09 +0000 Subject: update force_encoding document. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'string.c') diff --git a/string.c b/string.c index ccc2d21bd..0f35ee7d5 100644 --- a/string.c +++ b/string.c @@ -5352,6 +5352,8 @@ rb_str_setter(VALUE val, ID id, VALUE *var) * str.force_encoding(encoding) => str * * Changes the encoding to +encoding+ and returns self. + * + * If nil is given as +encoding+, "ASCII-8BIT" is used. */ static VALUE -- cgit