aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorLindsey Kuper <[email protected]>2011-05-10 11:55:32 -0700
committerGraydon Hoare <[email protected]>2011-05-13 17:35:12 -0700
commit6a53e39e710d4a31785015d042cc491692954ab7 (patch)
tree892b61fa3fcb7799e10ecba61d54837da4cbdd11 /src/comp/front/ast.rs
parentStarting on support for anonymous objects. Just syntax so far. (diff)
downloadrust-6a53e39e710d4a31785015d042cc491692954ab7.tar.xz
rust-6a53e39e710d4a31785015d042cc491692954ab7.zip
Correct capitalization of "Option".
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index 51977b5f..d2bc6578 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -372,12 +372,12 @@ type _obj = rec(vec[obj_field] fields,
vec[@method] methods,
option::t[@method] dtor);
-
-// Hmm. An anon_obj might extend an existing object, in which case it'll
-// probably add fields and methods.
-type anon_obj = rec(option.t[vec[obj_field]] fields,
- vec[@method] methods,
- option.t[ident] with_obj);
+type anon_obj = rec(
+ // New fields and methods, if they exist.
+ Option.t[vec[obj_field]] fields,
+ vec[@method] methods,
+ // with_obj: the original object being extended, if it exists.
+ Option.t[ident] with_obj);
tag mod_index_entry {
mie_view_item(@view_item);