summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-30 09:19:09 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-30 09:19:09 +0000
commit786cf6581c6e50ce26aae3abe82749bac5141cb4 (patch)
treeb43c2a78a3c6a162931018d0b5b019b64c031cb8 /string.c
parent1d6171160bc5b1dcb5ea9f621e1d570ad201e27d (diff)
downloadruby-786cf6581c6e50ce26aae3abe82749bac5141cb4.tar.gz
ruby-786cf6581c6e50ce26aae3abe82749bac5141cb4.tar.xz
ruby-786cf6581c6e50ce26aae3abe82749bac5141cb4.zip
update force_encoding document.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 2 insertions, 0 deletions
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