about summary refs log tree commit diff
path: root/doc/rust.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/rust.md')
-rw-r--r--doc/rust.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/rust.md b/doc/rust.md
index fe8d0a834e3..bfc18a8473b 100644
--- a/doc/rust.md
+++ b/doc/rust.md
@@ -3194,7 +3194,7 @@ fn add(x: int, y: int) -> int {
 
 let mut x = add(5,7);
 
-type Binop<'self> = &'self fn(int,int) -> int;
+type Binop<'self> = 'self |int,int| -> int;
 let bo: Binop = add;
 x = bo(5,7);
 ~~~~