From 9e84f837365c65afc21071fb431dc4d17154499b Mon Sep 17 00:00:00 2001 From: drbrain Date: Tue, 29 May 2012 21:20:45 +0000 Subject: * error.c (exc_set_backtrace): Updated documentation to indicate set_backtrace allows a string as well as an array of strings. [ruby-trunk - Bug #6501] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'error.c') diff --git a/error.c b/error.c index 1dce70c01b..eabc3c9eb3 100644 --- a/error.c +++ b/error.c @@ -709,11 +709,11 @@ rb_check_backtrace(VALUE bt) /* * call-seq: - * exc.set_backtrace(array) -> array + * exc.set_backtrace(backtrace) -> array * - * Sets the backtrace information associated with exc. The - * argument must be an array of String objects in the - * format described in Exception#backtrace. + * Sets the backtrace information associated with +exc+. The +backtrace+ must + * be an array of String objects or a single String in the format described + * in Exception#backtrace. * */ -- cgit v1.2.3