about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-08-27 14:22:25 -0700
committerBrian Anderson <banderson@mozilla.com>2012-08-27 17:22:18 -0700
commit161a82e433fbfbc0bd57a4d951ac37656a8a30f6 (patch)
treec59e3d6a32f471299a8fde09506ebf6cff8f44db /doc
parent4ba9fdd3627869f04ee39d6146023df822e0936e (diff)
downloadrust-161a82e433fbfbc0bd57a4d951ac37656a8a30f6.tar.gz
rust-161a82e433fbfbc0bd57a4d951ac37656a8a30f6.zip
Camel case various core constructors
Diffstat (limited to 'doc')
-rw-r--r--doc/rust.md14
-rw-r--r--doc/tutorial.md4
2 files changed, 9 insertions, 9 deletions
diff --git a/doc/rust.md b/doc/rust.md
index 746769046bc..434b0eb3f2d 100644
--- a/doc/rust.md
+++ b/doc/rust.md
@@ -3030,8 +3030,8 @@ The result of a `spawn` call is a `core::task::task` value.
 An example of a `spawn` call:
 
 ~~~~
-let po = comm::port();
-let ch = comm::chan(po);
+let po = comm::Port();
+let ch = comm::Chan(po);
 
 do task::spawn {
     // let task run, do other things
@@ -3052,8 +3052,8 @@ channel's outgoing buffer.
 An example of a send:
 
 ~~~~
-let po = comm::port();
-let ch = comm::chan(po);
+let po = comm::Port();
+let ch = comm::Chan(po);
 comm::send(ch, ~"hello, world");
 ~~~~
 
@@ -3061,15 +3061,15 @@ comm::send(ch, ~"hello, world");
 ### Receiving values from ports
 
 Receiving a value is done by a call to the `recv` method on a value of type
-`core::comm::port`. This call causes the receiving task to enter the *blocked
+`core::comm::Port`. This call causes the receiving task to enter the *blocked
 reading* state until a value arrives in the port's receive queue, at which
 time the port deques a value to return, and un-blocks the receiving task.
 
 An example of a *receive*:
 
 ~~~~~~~~
-# let po = comm::port();
-# let ch = comm::chan(po);
+# let po = comm::Port();
+# let ch = comm::Chan(po);
 # comm::send(ch, ~"");
 let s = comm::recv(po);
 ~~~~~~~~
diff --git a/doc/tutorial.md b/doc/tutorial.md
index f88baf4a190..fc79e5fcd33 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -2996,9 +2996,9 @@ message to the port.  The next statement actually spawns the child:
 
 ~~~~
 # import task::{spawn};
-# import comm::{port, chan};
+# import comm::{Port, Chan};
 # fn some_expensive_computation() -> int { 42 }
-# let port = port();
+# let port = Port();
 # let chan = port.chan();
 do spawn {
     let result = some_expensive_computation();