]> git.lizzy.rs Git - rust.git/commitdiff
change spawn_connected argument to copy mode
authorNiko Matsakis <niko@alum.mit.edu>
Mon, 9 Jan 2012 00:31:26 +0000 (16:31 -0800)
committerNiko Matsakis <niko@alum.mit.edu>
Mon, 9 Jan 2012 14:50:39 +0000 (06:50 -0800)
src/libcore/task.rs

index afc9d7837126ab33213b8d428ec613f26631ffe4..19e3f2b21b3816287ff4c7b0ed12d35c5a088e83 100644 (file)
@@ -229,7 +229,7 @@ fn spawn_joinable(+f: sendfn()) -> joinable_task {
 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);