chore: fix typo in display_object.rs

defualt -> default
This commit is contained in:
Ikko Eltociear Ashimine 2023-03-28 02:40:15 +09:00 committed by relrelb
parent 87dad709b8
commit fc4b51b20f
1 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ pub struct DisplayObjectBase<'gc> {
maskee: Option<DisplayObject<'gc>>,
/// The blend mode used when rendering this display object.
/// Values other than the defualt `BlendMode::Normal` implicitly cause cache-as-bitmap behavior.
/// Values other than the default `BlendMode::Normal` implicitly cause cache-as-bitmap behavior.
#[collect(require_static)]
blend_mode: BlendMode,
@ -1164,13 +1164,13 @@ pub trait TDisplayObject<'gc>:
}
/// The blend mode used when rendering this display object.
/// Values other than the defualt `BlendMode::Normal` implicitly cause cache-as-bitmap behavior.
/// Values other than the default `BlendMode::Normal` implicitly cause cache-as-bitmap behavior.
fn blend_mode(&self) -> BlendMode {
self.base().blend_mode()
}
/// Sets the blend mode used when rendering this display object.
/// Values other than the defualt `BlendMode::Normal` implicitly cause cache-as-bitmap behavior.
/// Values other than the default `BlendMode::Normal` implicitly cause cache-as-bitmap behavior.
fn set_blend_mode(&self, gc_context: MutationContext<'gc, '_>, value: BlendMode) {
self.base_mut(gc_context).set_blend_mode(value);
}