summaryrefslogtreecommitdiffstats
path: root/transcode.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 13:47:47 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 13:47:47 +0000
commitafb0208f98c069dc3c33d30805f3d3422fdfd318 (patch)
treedd703a381a3b74130964f04804a50c347564356a /transcode.c
parent84778367473613f3d7cee278f8b1f21a0e06bd58 (diff)
downloadruby-afb0208f98c069dc3c33d30805f3d3422fdfd318.tar.gz
ruby-afb0208f98c069dc3c33d30805f3d3422fdfd318.tar.xz
ruby-afb0208f98c069dc3c33d30805f3d3422fdfd318.zip
Add rdoc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/transcode.c b/transcode.c
index b2d6706f7..b01d4a1f0 100644
--- a/transcode.c
+++ b/transcode.c
@@ -2889,7 +2889,7 @@ econv_s_search_convpath(int argc, VALUE *argv, VALUE klass)
}
/*
- * Check the existence of a convertsion path.
+ * Check the existence of a conversion path.
* Returns the number of converters in the conversion path.
* result: >=0:success -1:failure
*/
@@ -3496,6 +3496,10 @@ econv_primitive_convert(int argc, VALUE *argv, VALUE self)
* If a conversion error occur,
* Encoding::UndefinedConversionError or
* Encoding::InvalidByteSequenceError is raised.
+ * Encoding::Converter#convert doesn't supply methods to recover or restart
+ * from these exceptions.
+ * When you want to handle these conversion errors,
+ * use Encoding::Converter#primitive_convert.
*
*/
static VALUE