From b355936b4da0831f47afe8f251daee503c8caa32 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 1 Aug 2012 17:30:05 -0700 Subject: Convert ret to return --- src/libcore/task.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libcore/task.rs') diff --git a/src/libcore/task.rs b/src/libcore/task.rs index 6b356819340..b39f384ae0a 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -833,7 +833,7 @@ fn spawn_raw(opts: task_opts, +f: fn~()) { // if parent_group { // if !enlist_in_group(parent_group) { // leave_group(child_group); // Roll back - // ret; // Parent group failed. Don't run child's f(). + // return; // Parent group failed. Don't run child's f(). // } // } // stash_taskgroup_data_in_TLS(child_group, parent_group); @@ -1024,7 +1024,7 @@ unsafe fn local_get_helper( do_pop: bool) -> option<@T> { let map = get_task_local_map(task); - // Interpret our findings from the map + // Interpreturn our findings from the map do local_data_lookup(map, key).map |result| { // A reference count magically appears on 'data' out of thin air. It // was referenced in the local_data box, though, not here, so before @@ -1743,7 +1743,7 @@ fn test_child_doesnt_ref_parent() { // climbing the task tree to dereference each ancestor. (See #1789) const generations: uint = 128; fn child_no(x: uint) -> fn~() { - ret || { + return || { if x < generations { task::spawn(child_no(x+1)); } -- cgit 1.4.1-3-g733a5