chore: Fix typos

This commit is contained in:
Richy McGregor 2023-10-06 01:37:00 +10:00 committed by Nathan Adams
parent 6061186c0f
commit dd083dd502
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ pub struct TransformObject<'gc> {
impl<'gc> TransformObject<'gc> { impl<'gc> TransformObject<'gc> {
fn new(activation: &mut Activation<'_, 'gc>, args: &[Value<'gc>]) -> Option<Self> { fn new(activation: &mut Activation<'_, 'gc>, args: &[Value<'gc>]) -> Option<Self> {
let clip = match args { let clip = match args {
// `Tranform` constructor accepts exactly 1 argument. // `Transform` constructor accepts exactly 1 argument.
[Value::MovieClip(clip)] => Some(*clip), [Value::MovieClip(clip)] => Some(*clip),
[Value::Object(clip)] => { [Value::Object(clip)] => {
let stage_object = clip.as_stage_object()?; let stage_object = clip.as_stage_object()?;

View File

@ -746,7 +746,7 @@ impl<'gc> EditText<'gc> {
/// Relayout the `EditText`. /// Relayout the `EditText`.
/// ///
/// This function operats exclusively with the text-span representation of /// This function operates exclusively with the text-span representation of
/// the text, and no higher-level representation. Specifically, CSS should /// the text, and no higher-level representation. Specifically, CSS should
/// have already been calculated and applied to HTML trees lowered into the /// have already been calculated and applied to HTML trees lowered into the
/// text-span representation. /// text-span representation.