summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--thread.c6
-rw-r--r--version.h2
3 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6f7a3303a4..5a51c72272 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Mar 10 02:40:11 2015 SHIBATA Hiroshi <[email protected]>
+
+ * thread.c: Improve documentation for Thread#value
+ [Bug #10694][ruby-core:67324][ci skip]
+
Tue Mar 10 02:37:55 2015 SHIBATA Hiroshi <[email protected]>
* string.c: [DOC] Add missing documentation around String#chomp.
diff --git a/thread.c b/thread.c
index b24d29e087..605ac60c08 100644
--- a/thread.c
+++ b/thread.c
@@ -916,10 +916,14 @@ thread_join_m(int argc, VALUE *argv, VALUE self)
* call-seq:
* thr.value -> obj
*
- * Waits for +thr+ to complete, using #join, and returns its value.
+ * Waits for +thr+ to complete, using #join, and returns its value or raises
+ * the exception which terminated the thread.
*
* a = Thread.new { 2 + 2 }
* a.value #=> 4
+ *
+ * b = Thread.new { raise 'something went wrong' }
+ * b.value #=> RuntimeError: something went wrong
*/
static VALUE
diff --git a/version.h b/version.h
index 1eae730035..2798b80d5d 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.1.5"
#define RUBY_RELEASE_DATE "2015-03-10"
-#define RUBY_PATCHLEVEL 311
+#define RUBY_PATCHLEVEL 312
#define RUBY_RELEASE_YEAR 2015
#define RUBY_RELEASE_MONTH 3