mirror of
https://github.com/servo/servo.git
synced 2025-07-28 09:40:33 +01:00
Fix formatting for variable in doc-comment within codegen
This commit is contained in:
parent
ef8119511c
commit
26abff9663
1 changed files with 2 additions and 2 deletions
|
@ -5907,8 +5907,8 @@ pub trait %(derivedTrait)s: Sized {
|
||||||
|
|
||||||
impl %(name)sCast {
|
impl %(name)sCast {
|
||||||
#[inline]
|
#[inline]
|
||||||
/// Downcast an instance of a base class of `${name}` to an instance of
|
/// Downcast an instance of a base class of `%(name)s` to an instance of
|
||||||
/// `${name}`, if it internally is an instance of `${name}`
|
/// `%(name)s`, if it internally is an instance of `%(name)s`
|
||||||
pub fn to_ref<T: %(derivedTrait)s + Reflectable>(base: &T) -> Option<&%(name)s> {
|
pub fn to_ref<T: %(derivedTrait)s + Reflectable>(base: &T) -> Option<&%(name)s> {
|
||||||
match base.%(methodName)s() {
|
match base.%(methodName)s() {
|
||||||
true => Some(unsafe { mem::transmute(base) }),
|
true => Some(unsafe { mem::transmute(base) }),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue