Skip to content

Commit

Permalink
change spawn_connected argument to copy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jan 9, 2012
1 parent 1ee9a83 commit 8944a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/task.rs
Expand Up @@ -229,7 +229,7 @@ Returns:
The new child task along with the port to receive messages and the channel
to send messages.
*/
fn spawn_connected<ToCh:send, FrCh:send>(f: connected_fn<ToCh, FrCh>)
fn spawn_connected<ToCh:send, FrCh:send>(+f: connected_fn<ToCh, FrCh>)
-> connected_task<ToCh,FrCh> {
let from_child_port = comm::port::<FrCh>();
let from_child_chan = comm::chan(from_child_port);
Expand Down

0 comments on commit 8944a39

Please sign in to comment.