From 21be1379d561b6679a8a2ea47dce88f948c5acca Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Mon, 2 Apr 2012 15:34:49 -0700 Subject: 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 --- doc/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/tutorial.md') 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 -- cgit 1.4.1-3-g733a5