From f43fc5fff898d2c2d0b2a49ec35daf1005e76dd9 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Thu, 18 Apr 2013 20:46:23 +1000 Subject: [PATCH] libcore: make spawn_supervised documentation reflect its behaviour. --- src/libcore/task/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs index a6c4b6c526862..2975f3d5e4660 100644 --- a/src/libcore/task/mod.rs +++ b/src/libcore/task/mod.rs @@ -466,8 +466,9 @@ pub fn spawn_unlinked(f: ~fn()) { pub fn spawn_supervised(f: ~fn()) { /*! - * Creates a child task unlinked from the current one. If either this - * task or the child task fails, the other will not be killed. + * Creates a child task supervised by the current one. If the child + * task fails, the parent will not be killed, but if the parent fails, + * the child will be killed. */ task().supervised().spawn(f)