From bdc8e8d222eebebcbc9fcfbc1df03ee8b57892f5 Mon Sep 17 00:00:00 2001 From: Kevin Atkinson Date: Mon, 16 Jan 2012 21:04:02 -0700 Subject: Minor cleanups to custom discriminator code. Mostly updates to the comments and docs from Pull Request #1537. --- src/comp/middle/ty.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/middle/ty.rs') diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs index d44b0ee0072..478888c99c7 100644 --- a/src/comp/middle/ty.rs +++ b/src/comp/middle/ty.rs @@ -2636,8 +2636,8 @@ fn tag_variants(cx: ctxt, id: ast::def_id) -> @[variant_info] { @csearch::get_tag_variants(cx, id) } else { // FIXME: Now that the variants are run through the type checker (to - // check the disr_expr if one exists), this code should likely be - // moved there to avoid having to call eval_const_expr twice + // check the disr_expr if it exists), this code should likely be + // moved there to avoid having to call eval_const_expr twice. alt cx.items.get(id.node) { ast_map::node_item(@{node: ast::item_tag(variants, _), _}) { let disr_val = -1; -- cgit 1.4.1-3-g733a5