mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00: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 {
|
||||
#[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) }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue