Skip to content

Commit 68a909b

Browse files
committed
Replace apostrophes with single quotes in code examples
1 parent 521e7d1 commit 68a909b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2432,7 +2432,7 @@ <h2>ConsumedThing Examples</h2>
24322432
console.log("Temperature: " + temperature);
24332433

24342434
await thing.unsubscribe("ready");
2435-
console.log("Unsubscribed from the ready event.");
2435+
console.log("Unsubscribed from the 'ready' event.");
24362436
} catch (error) {
24372437
console.log("Error in the cleanup function");
24382438
}
@@ -4237,7 +4237,7 @@ <h2>API design rationale</h2>
42374237
and the <code>open()</code> method are directly exposed on the object.
42384238
</p>
42394239
<pre class="example" title="Open a lock with a simple API">
4240-
let lock = await WoT.consume(https://td.my.com/lock-00123);
4240+
let lock = await WoT.consume('https://td.my.com/lock-00123');
42414241
console.log(lock.status);
42424242
lock.open('withThisKey');
42434243
</pre>
@@ -4262,8 +4262,8 @@ <h2>API design rationale</h2>
42624262
let res = await fetch(‘https://td.my.com/lock-00123’);
42634263
let td = await res.json();
42644264
let lock = new ConsumedThing(td);
4265-
console.log(lock.readProperty(status));
4266-
lock.invokeAction(open, 'withThisKey');
4265+
console.log(lock.readProperty('status'));
4266+
lock.invokeAction('open', 'withThisKey');
42674267
</pre>
42684268
</section>
42694269
<p>

0 commit comments

Comments
 (0)