Fix formatting for variable in doc-comment within codegen

This commit is contained in:
Corey Farwell 2015-10-17 14:17:07 -04:00
parent ef8119511c
commit 26abff9663

View file

@ -5907,8 +5907,8 @@ pub trait %(derivedTrait)s: Sized {
impl %(name)sCast {
#[inline]
/// Downcast an instance of a base class of `${name}` to an instance of
/// `${name}`, if it internally is an instance of `${name}`
/// Downcast an instance of a base class of `%(name)s` to an instance of
/// `%(name)s`, if it internally is an instance of `%(name)s`
pub fn to_ref<T: %(derivedTrait)s + Reflectable>(base: &T) -> Option<&%(name)s> {
match base.%(methodName)s() {
true => Some(unsafe { mem::transmute(base) }),