From 5049e93a0e5884faa2a693ec2ffb61e5c477a434 Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Mon, 16 Sep 2024 16:28:25 +0200 Subject: [PATCH] fix typos --- crates/store/re_types/src/archetypes/asset_video.rs | 6 +++--- .../store/re_types/src/archetypes/video_frame_reference.rs | 6 +++--- crates/store/re_video/src/lib.rs | 2 +- docs/content/reference/types/archetypes.md | 2 +- docs/content/reference/types/components.md | 2 +- docs/snippets/all/archetypes/video_manual_frames.cpp | 2 +- docs/snippets/all/archetypes/video_manual_frames.py | 2 +- docs/snippets/all/archetypes/video_manual_frames.rs | 2 +- rerun_cpp/src/rerun/archetypes/asset_video.hpp | 2 +- rerun_cpp/src/rerun/archetypes/video_frame_reference.hpp | 2 +- rerun_py/rerun_sdk/rerun/archetypes/asset_video.py | 2 +- .../rerun_sdk/rerun/archetypes/video_frame_reference.py | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/crates/store/re_types/src/archetypes/asset_video.rs b/crates/store/re_types/src/archetypes/asset_video.rs index 997c93f6d754..3e91d5761c48 100644 --- a/crates/store/re_types/src/archetypes/asset_video.rs +++ b/crates/store/re_types/src/archetypes/asset_video.rs @@ -100,17 +100,17 @@ use ::re_types_core::{DeserializationError, DeserializationResult}; /// // Log video asset which is referred to by frame references. /// rec.log_static("video_asset", &rerun::AssetVideo::from_file_path(path)?)?; /// -/// // Create two entites, showing the same video frozen at different times. +/// // Create two entities, showing the same video frozen at different times. /// rec.log( /// "frame_at_start", /// &rerun::VideoFrameReference::new(rerun::components::VideoTimestamp::from_seconds(0.0)) /// .with_video_reference("video_asset"), -/// ); +/// )?; /// rec.log( /// "frame_at_one_second", /// &rerun::VideoFrameReference::new(rerun::components::VideoTimestamp::from_seconds(1.0)) /// .with_video_reference("video_asset"), -/// ); +/// )?; /// /// // TODO(#5520): log blueprint once supported /// Ok(()) diff --git a/crates/store/re_types/src/archetypes/video_frame_reference.rs b/crates/store/re_types/src/archetypes/video_frame_reference.rs index 41ebf3f46587..c876ce0a8d32 100644 --- a/crates/store/re_types/src/archetypes/video_frame_reference.rs +++ b/crates/store/re_types/src/archetypes/video_frame_reference.rs @@ -97,17 +97,17 @@ use ::re_types_core::{DeserializationError, DeserializationResult}; /// // Log video asset which is referred to by frame references. /// rec.log_static("video_asset", &rerun::AssetVideo::from_file_path(path)?)?; /// -/// // Create two entites, showing the same video frozen at different times. +/// // Create two entities, showing the same video frozen at different times. /// rec.log( /// "frame_at_start", /// &rerun::VideoFrameReference::new(rerun::components::VideoTimestamp::from_seconds(0.0)) /// .with_video_reference("video_asset"), -/// ); +/// )?; /// rec.log( /// "frame_at_one_second", /// &rerun::VideoFrameReference::new(rerun::components::VideoTimestamp::from_seconds(1.0)) /// .with_video_reference("video_asset"), -/// ); +/// )?; /// /// // TODO(#5520): log blueprint once supported /// Ok(()) diff --git a/crates/store/re_video/src/lib.rs b/crates/store/re_video/src/lib.rs index efd545fbd83e..d806c65c3225 100644 --- a/crates/store/re_video/src/lib.rs +++ b/crates/store/re_video/src/lib.rs @@ -34,7 +34,7 @@ impl VideoData { } else if mp4::is_mp4(data) { "video/mp4".to_owned() } else { - // Technically this means that we failed to determine the media type alltogether, + // Technically this means that we failed to determine the media type altogether, // but we don't want to call it `FailedToDetermineMediaType` since the rest of Rerun has // access to `re_types::components::MediaType` which has a much wider range of media type detection. return Err(VideoLoadError::UnsupportedVideoType); diff --git a/docs/content/reference/types/archetypes.md b/docs/content/reference/types/archetypes.md index 8f927c594022..be8c53d8ec70 100644 --- a/docs/content/reference/types/archetypes.md +++ b/docs/content/reference/types/archetypes.md @@ -7,7 +7,7 @@ order: 1 Archetypes are bundles of components for which the Rerun viewer has first-class built-in support. When logged, each archetype also includes an _indicator component_ which captures the intent of the logging code and triggers the activation of the corresponding visualizers. See -[entities and Compponents](../../concepts/entity-component.md) and +[Entities and Compponents](../../concepts/entity-component.md) and [Visualizers and Overrides](../../concepts/visualizers-and-overrides.md) for more information. This page lists all built-in archetypes. diff --git a/docs/content/reference/types/components.md b/docs/content/reference/types/components.md index 41fb4120dfe8..1139ef975b74 100644 --- a/docs/content/reference/types/components.md +++ b/docs/content/reference/types/components.md @@ -10,7 +10,7 @@ An entity can only ever contain a single array of any given component type. If you log the same component several times on an entity, the last value (or array of values) will overwrite the previous. For more information on the relationship between **archetypes** and **components**, check out the concept page -on [entities and Components](../../concepts/entity-component.md). +on [Entities and Components](../../concepts/entity-component.md). * [`AggregationPolicy`](components/aggregation_policy.md): Policy for aggregation of multiple scalar plot values. diff --git a/docs/snippets/all/archetypes/video_manual_frames.cpp b/docs/snippets/all/archetypes/video_manual_frames.cpp index 5c6dd3bb95a9..f4e02d3416a4 100644 --- a/docs/snippets/all/archetypes/video_manual_frames.cpp +++ b/docs/snippets/all/archetypes/video_manual_frames.cpp @@ -23,7 +23,7 @@ int main(int argc, char* argv[]) { // Log video asset which is referred to by frame references. rec.log_static("video_asset", rerun::AssetVideo::from_file(path).value_or_throw()); - // Create two entites, showing the same video frozen at different times. + // Create two entities, showing the same video frozen at different times. rec.log("frame_at_start", rerun::VideoFrameReference(0.0s).with_video_reference("video_asset")); rec.log( "frame_at_one_second", diff --git a/docs/snippets/all/archetypes/video_manual_frames.py b/docs/snippets/all/archetypes/video_manual_frames.py index f0f0683b2f88..0dec27a11347 100644 --- a/docs/snippets/all/archetypes/video_manual_frames.py +++ b/docs/snippets/all/archetypes/video_manual_frames.py @@ -17,7 +17,7 @@ # Log video asset which is referred to by frame references. rr.log("video_asset", rr.AssetVideo(path=sys.argv[1]), static=True) -# Create two entites, showing the same video frozen at different times. +# Create two entities, showing the same video frozen at different times. rr.log( "frame_at_start", rr.VideoFrameReference( diff --git a/docs/snippets/all/archetypes/video_manual_frames.rs b/docs/snippets/all/archetypes/video_manual_frames.rs index 3762312a6403..447c98e848a6 100644 --- a/docs/snippets/all/archetypes/video_manual_frames.rs +++ b/docs/snippets/all/archetypes/video_manual_frames.rs @@ -17,7 +17,7 @@ fn main() -> anyhow::Result<()> { // Log video asset which is referred to by frame references. rec.log_static("video_asset", &rerun::AssetVideo::from_file_path(path)?)?; - // Create two entites, showing the same video frozen at different times. + // Create two entities, showing the same video frozen at different times. rec.log( "frame_at_start", &rerun::VideoFrameReference::new(rerun::components::VideoTimestamp::from_seconds(0.0)) diff --git a/rerun_cpp/src/rerun/archetypes/asset_video.hpp b/rerun_cpp/src/rerun/archetypes/asset_video.hpp index d3173492d3cc..a39ef4208f49 100644 --- a/rerun_cpp/src/rerun/archetypes/asset_video.hpp +++ b/rerun_cpp/src/rerun/archetypes/asset_video.hpp @@ -107,7 +107,7 @@ namespace rerun::archetypes { /// // Log video asset which is referred to by frame references. /// rec.log_static("video_asset", rerun::AssetVideo::from_file(path).value_or_throw()); /// - /// // Create two entites, showing the same video frozen at different times. + /// // Create two entities, showing the same video frozen at different times. /// rec.log("frame_at_start", rerun::VideoFrameReference(0.0s).with_video_reference("video_asset")); /// rec.log( /// "frame_at_one_second", diff --git a/rerun_cpp/src/rerun/archetypes/video_frame_reference.hpp b/rerun_cpp/src/rerun/archetypes/video_frame_reference.hpp index ad8b68c9caeb..86e40596f1b2 100644 --- a/rerun_cpp/src/rerun/archetypes/video_frame_reference.hpp +++ b/rerun_cpp/src/rerun/archetypes/video_frame_reference.hpp @@ -102,7 +102,7 @@ namespace rerun::archetypes { /// // Log video asset which is referred to by frame references. /// rec.log_static("video_asset", rerun::AssetVideo::from_file(path).value_or_throw()); /// - /// // Create two entites, showing the same video frozen at different times. + /// // Create two entities, showing the same video frozen at different times. /// rec.log("frame_at_start", rerun::VideoFrameReference(0.0s).with_video_reference("video_asset")); /// rec.log( /// "frame_at_one_second", diff --git a/rerun_py/rerun_sdk/rerun/archetypes/asset_video.py b/rerun_py/rerun_sdk/rerun/archetypes/asset_video.py index 7131d21967f6..c35d9b4ed86e 100644 --- a/rerun_py/rerun_sdk/rerun/archetypes/asset_video.py +++ b/rerun_py/rerun_sdk/rerun/archetypes/asset_video.py @@ -89,7 +89,7 @@ class AssetVideo(AssetVideoExt, Archetype): # Log video asset which is referred to by frame references. rr.log("video_asset", rr.AssetVideo(path=sys.argv[1]), static=True) - # Create two entites, showing the same video frozen at different times. + # Create two entities, showing the same video frozen at different times. rr.log( "frame_at_start", rr.VideoFrameReference( diff --git a/rerun_py/rerun_sdk/rerun/archetypes/video_frame_reference.py b/rerun_py/rerun_sdk/rerun/archetypes/video_frame_reference.py index 5ba08cb6fa1e..1b72bf645919 100644 --- a/rerun_py/rerun_sdk/rerun/archetypes/video_frame_reference.py +++ b/rerun_py/rerun_sdk/rerun/archetypes/video_frame_reference.py @@ -88,7 +88,7 @@ class VideoFrameReference(Archetype): # Log video asset which is referred to by frame references. rr.log("video_asset", rr.AssetVideo(path=sys.argv[1]), static=True) - # Create two entites, showing the same video frozen at different times. + # Create two entities, showing the same video frozen at different times. rr.log( "frame_at_start", rr.VideoFrameReference(