servo: Merge #8059 - Fix formatting for variable in doc-comment within codegen (from frewsxcv:fix-codegen-docs); r=jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: b847e4dd778e49ba60c786da4aa77813dee8b553
This commit is contained in:
Corey Farwell 2015-10-18 07:55:48 -06:00
Родитель 487d7a4093
Коммит f73c951c58
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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) }),