From abf7d3fa208430042c33374025cd34e52bcb3338 Mon Sep 17 00:00:00 2001 From: soonsouth Date: Fri, 15 Mar 2024 23:48:10 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: soonsouth --- core/src/avm1/object_reference.rs | 2 +- core/src/avm2/namespace.rs | 2 +- core/src/loader.rs | 2 +- swf/src/types/color.rs | 2 +- video/software/src/decoder/vp6.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/avm1/object_reference.rs b/core/src/avm1/object_reference.rs index d9b3062cc..a1f3dc79a 100644 --- a/core/src/avm1/object_reference.rs +++ b/core/src/avm1/object_reference.rs @@ -60,7 +60,7 @@ struct MovieClipReferenceData<'gc> { path: MovieClipPath<'gc>, /// A weak reference to the target stage object that `path` points to - /// This is used for fast-path resvoling when possible, as well as for re-generating `path` (in the case the the target object is renamed) + /// This is used for fast-path resvoling when possible, as well as for re-generating `path` (in the case the target object is renamed) /// If this is `None` then we have previously missed the cache, due to the target object being removed and re-created, causing us to fallback to the slow path resolution cached_stage_object: Lock>>>, } diff --git a/core/src/avm2/namespace.rs b/core/src/avm2/namespace.rs index 027de0566..578aca8a8 100644 --- a/core/src/avm2/namespace.rs +++ b/core/src/avm2/namespace.rs @@ -185,7 +185,7 @@ impl<'gc> Namespace<'gc> { { api_version = ApiVersion::VM_INTERNAL; } - // In avmplus, this conversion is done later in in 'getValidApiVersion' + // In avmplus, this conversion is done later in 'getValidApiVersion' // However, there's no reason to hold on to invalid API versions for the // current active series (player runtime), so let's just do the conversion immediately. api_version = diff --git a/core/src/loader.rs b/core/src/loader.rs index 70a5facc2..b94020587 100644 --- a/core/src/loader.rs +++ b/core/src/loader.rs @@ -2445,7 +2445,7 @@ impl<'gc> Loader<'gc> { if url.scheme() == "file" { Loader::load_error_swf(mc, uc, url.to_string()); } else { - // Replacing the movie sets total_frames and and frames_loaded correctly. + // Replacing the movie sets total_frames and frames_loaded correctly. // The movie just needs to be the default empty movie with the correct URL. // In this loading state, the URL is the URL of the parent movie / doesn't change. diff --git a/swf/src/types/color.rs b/swf/src/types/color.rs index a4bbcdac0..cc885c924 100644 --- a/swf/src/types/color.rs +++ b/swf/src/types/color.rs @@ -29,7 +29,7 @@ impl Color { /// The byte-ordering of the 32-bit `rgb` value is XXRRGGBB. /// The most significant byte, represented by XX, is ignored; /// the `alpha` value is provided separately. - /// This is followed by the the red (RR), green (GG), and blue (BB) components values, + /// This is followed by the red (RR), green (GG), and blue (BB) components values, /// respectively. /// /// # Examples diff --git a/video/software/src/decoder/vp6.rs b/video/software/src/decoder/vp6.rs index 1c22fd8ad..630694d63 100644 --- a/video/software/src/decoder/vp6.rs +++ b/video/software/src/decoder/vp6.rs @@ -198,7 +198,7 @@ impl VideoDecoder for Vp6Decoder { let v = &yuv[offsets.2..offsets.2 + chroma_width * chroma_height]; // Cropping the encoded frame (containing whole macroblocks) to the - // size requested by the the bounds attribute. + // size requested by the bounds attribute. let &bounds = &self.bounds;