From 181e5f3fc8bd9afaf0e39ea57cf63b47755e3d9a Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Wed, 21 May 2014 17:20:52 -0700 Subject: [PATCH] syntax: use doc comments in the interner --- src/libsyntax/util/interner.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index 66260e50208..66acd576aa1 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -126,14 +126,14 @@ impl RcStr { } } -// A StrInterner differs from Interner in that it accepts -// &str rather than RcStr, resulting in less allocation. +/// A StrInterner differs from Interner in that it accepts +/// &str rather than RcStr, resulting in less allocation. pub struct StrInterner { map: RefCell>, vect: RefCell >, } -// when traits can extend traits, we should extend index to get [] +/// When traits can extend traits, we should extend index to get [] impl StrInterner { pub fn new() -> StrInterner { StrInterner { @@ -177,8 +177,8 @@ impl StrInterner { // lightweight way to get what I want, though not // necessarily the cleanest. - // create a gensym with the same name as an existing - // entry. + /// Create a gensym with the same name as an existing + /// entry. pub fn gensym_copy(&self, idx : Name) -> Name { let new_idx = self.len() as Name; // leave out of map to avoid colliding