зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
487d7a4093
Коммит
f73c951c58
|
@ -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) }),
|
||||
|
|
Загрузка…
Ссылка в новой задаче