From 486dd97e74eb69334a737ab3ce168f4b74815373 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: svn+ssh://ci.ruby-lang.org/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 ccc2d21bdd..0f35ee7d50 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 v1.2.3