tutorial: Add more buffalo.

This commit is contained in:
Joshua Wise 2012-07-09 21:33:42 -04:00 committed by Graydon Hoare
parent f39477d926
commit 20f7c7cf0c

View File

@ -2320,11 +2320,11 @@ and one for values. This means that this code is valid:
~~~~ ~~~~
mod buffalo { mod buffalo {
type buffalo = int; type buffalo = int;
fn buffalo(buffalo: buffalo) -> buffalo { buffalo } fn buffalo<buffalo: copy>(buffalo: buffalo) -> buffalo { buffalo }
} }
fn main() { fn main() {
let buffalo: buffalo::buffalo = 1; let buffalo: buffalo::buffalo = 1;
buffalo::buffalo(buffalo::buffalo(buffalo)); buffalo::buffalo::<buffalo::buffalo>(buffalo::buffalo(buffalo));
} }
~~~~ ~~~~