Skip to content

Commit

Permalink
Merge pull request #175 from eclipse-thingweb/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
JKRhb authored Jun 2, 2024
2 parents a5e7775 + 41ee6d7 commit ce8167f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/src/core/definitions/context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -57,7 +57,7 @@ final class Context {
return firstContextValue;
}

static PrefixMapping _createPrefixMappping(
static PrefixMapping _createPrefixMapping(
List<ContextEntry> contextEntries,
) {
final defaultPrefixValue = _determineDefaultPrefix(contextEntries);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/definitions/thing_description.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, dynamic> toJson() => _rawThingDescription;

Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/scripting_api/interaction_output.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/scripting_api/wot.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<ExposedThing> produce(ExposedThingInit exposedThingInit);

/// Requests a [ThingDescription] from the given [url].
Expand Down

0 comments on commit ce8167f

Please sign in to comment.