about summary refs log tree commit diff
path: root/doc/tutorial.md
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-04-02 15:34:49 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-04-02 16:12:49 -0700
commit21be1379d561b6679a8a2ea47dce88f948c5acca (patch)
tree25b911b9e5071d1512a3e5ff5d66b91716645c75 /doc/tutorial.md
parent987bc2362926d0672a01e8d5964940743df48cb6 (diff)
downloadrust-21be1379d561b6679a8a2ea47dce88f948c5acca.tar.gz
rust-21be1379d561b6679a8a2ea47dce88f948c5acca.zip
Rename some core::option functions
from_maybe => get_with_default
maybe => with_option
may => with_option_do

I know these names are kind of ridiculous, but it's the best I could think of.
Feel free to bikeshed. Closes #2081
Diffstat (limited to 'doc/tutorial.md')
-rw-r--r--doc/tutorial.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 4849a37231b..66f3070de6c 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -1551,7 +1551,7 @@ programs that just can't be typed.
 
 ~~~~
 let n = option::none;
-# option::may(n, fn&(&&x:int) {})
+# option::with_option_do(n, fn&(&&x:int) {})
 ~~~~
 
 If you never do anything else with `n`, the compiler will not be able