From 83be3f96050e9fab9ec0f426466313c8e4f800d3 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Sun, 2 Jun 2024 20:35:58 +0200 Subject: [PATCH 1/2] docs: fix typos in documentation comments --- lib/src/core/definitions/thing_description.dart | 2 +- lib/src/core/scripting_api/interaction_output.dart | 2 +- lib/src/core/scripting_api/wot.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/core/definitions/thing_description.dart b/lib/src/core/definitions/thing_description.dart index 96799af6..a96c1d9f 100644 --- a/lib/src/core/definitions/thing_description.dart +++ b/lib/src/core/definitions/thing_description.dart @@ -148,7 +148,7 @@ class ThingDescription { throw UnimplementedError(); } - /// Converts this [ThingDescription] to a [Map] resembling a JSON objct. + /// Converts this [ThingDescription] to a [Map] resembling a JSON object. // TODO: Revisit this for dynamic serialization Map toJson() => _rawThingDescription; diff --git a/lib/src/core/scripting_api/interaction_output.dart b/lib/src/core/scripting_api/interaction_output.dart index 8fd66a2b..9bcf40b9 100644 --- a/lib/src/core/scripting_api/interaction_output.dart +++ b/lib/src/core/scripting_api/interaction_output.dart @@ -28,7 +28,7 @@ abstract interface class InteractionOutput { /// [InteractionOutput]. DataSchema? get schema; - /// Asyncronously creates a [ByteBuffer] representation of the value of + /// Asynchronously creates a [ByteBuffer] representation of the value of /// of the [InteractionOutput]. /// /// Follows the algorithm defined for the `arrayBuffer()` function in the diff --git a/lib/src/core/scripting_api/wot.dart b/lib/src/core/scripting_api/wot.dart index 6c73131e..d586bc45 100644 --- a/lib/src/core/scripting_api/wot.dart +++ b/lib/src/core/scripting_api/wot.dart @@ -57,7 +57,7 @@ abstract interface class WoT { /// The [exposedThingInit] is a Thing Description which does not have to /// include all fields that are usually required for a TD. /// Missing information is added during the production of the [ExposedThing], - /// based on the underlying impementation. + /// based on the underlying implementation. Future produce(ExposedThingInit exposedThingInit); /// Requests a [ThingDescription] from the given [url]. From 41ee6d769d4d0baff800ddbc747d3b70a0877723 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Sun, 2 Jun 2024 20:36:34 +0200 Subject: [PATCH 2/2] style(context.dart): fix typo in private method name --- lib/src/core/definitions/context.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/core/definitions/context.dart b/lib/src/core/definitions/context.dart index c06e9a32..3638112b 100644 --- a/lib/src/core/definitions/context.dart +++ b/lib/src/core/definitions/context.dart @@ -16,7 +16,7 @@ const _tdVersion11ContextUrl = "https://www.w3.org/2022/wot/td/v1.1"; final class Context { /// Creates a new context from a list of [contextEntries]. Context(this.contextEntries) - : prefixMapping = _createPrefixMappping(contextEntries); + : prefixMapping = _createPrefixMapping(contextEntries); /// Determines the default prefix URL via the procedure described in /// [section 5.3.1.1] of the Thing Description 1.1 specification. @@ -57,7 +57,7 @@ final class Context { return firstContextValue; } - static PrefixMapping _createPrefixMappping( + static PrefixMapping _createPrefixMapping( List contextEntries, ) { final defaultPrefixValue = _determineDefaultPrefix(contextEntries);