summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
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 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