about summary refs log tree commit diff
path: root/src/lib
diff options
context:
space:
mode:
authorRoy Frostig <rfrostig@mozilla.com>2010-07-22 12:45:58 -0700
committerRoy Frostig <rfrostig@mozilla.com>2010-07-22 12:45:58 -0700
commit1ae13b3fdd02593581b8ccd374ea4971d473e9dc (patch)
tree1764bbae771080c736c58d2d5d89c4fab114ff5e /src/lib
parenta61be2d74a4f1ca02b8021c93f83742b8ffb3515 (diff)
downloadrust-1ae13b3fdd02593581b8ccd374ea4971d473e9dc.tar.gz
rust-1ae13b3fdd02593581b8ccd374ea4971d473e9dc.zip
Source FIXME annotations for issue #81 and a correction to STMT_bind fmt.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/_vec.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/_vec.rs b/src/lib/_vec.rs
index decb09f8e08..c0555bf1b03 100644
--- a/src/lib/_vec.rs
+++ b/src/lib/_vec.rs
@@ -26,11 +26,13 @@ fn init_fn[T](&init_op[T] op, uint n_elts) -> vec[T] {
 }
 
 fn init_elt[T](&T t, uint n_elts) -> vec[T] {
-  // FIXME: should be:
-  // fn elt_op[X](X x, uint i) -> X { ret x; }
-  // auto inner = bind elt_op[T](t, _);
-  // ret init_fn[T](inner, n_elts);
-  // but this does not work presently.
+  /**
+   * FIXME (issue #81): should be:
+   *
+   * fn elt_op[T](T x, uint i) -> T { ret x; }
+   * let init_op[T] inner = bind elt_op[T](t, _);
+   * ret init_fn[T](inner, n_elts);
+   */
   let vec[T] v = alloc[T](n_elts);
   let uint i = n_elts;
   while (i > uint(0)) {