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); 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].