Skip to content

Commit 8944a39

Browse files
committed
change spawn_connected argument to copy mode
1 parent 1ee9a83 commit 8944a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Returns:
229229
The new child task along with the port to receive messages and the channel
230230
to send messages.
231231
*/
232-
fn spawn_connected<ToCh:send, FrCh:send>(f: connected_fn<ToCh, FrCh>)
232+
fn spawn_connected<ToCh:send, FrCh:send>(+f: connected_fn<ToCh, FrCh>)
233233
-> connected_task<ToCh,FrCh> {
234234
let from_child_port = comm::port::<FrCh>();
235235
let from_child_chan = comm::chan(from_child_port);

0 commit comments

Comments
 (0)