Skip to content

Commit

Permalink
Fix style of parameter
Browse files Browse the repository at this point in the history
Added backticks to "near" when it represents text.
  • Loading branch information
JuhaVainio committed Oct 26, 2023
1 parent 8eb1313 commit 0e039e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,14 @@ The [=per-type virtual sensor metadata=] [=map=] must have the following [=map/e
1. Let |reading| be a new [=sensor reading=].
1. Let |keys| be the [=/list=] « "`distance`", "`max`" ».
1. [=list/For each=] |key| of |keys|
1. Let |value| be the result of [=parse single-value number reading=] with |parameters| and |key|.
1. Let |value| be the result of invoking [=parse single-value number reading=] with |parameters| and |key|.
1. If |value| is **undefined**.
1. Return **undefined**.
1. [=map/Set=] |reading|[|keys|] to |value|[|keys|].
1. Let |near| be the result of invoking [=get a property=] from |parameters| with "near".
1. Let |near| be the result of invoking [=get a property=] from |parameters| with "`near`".
1. If |near|'s type is not Boolean
1. Return **undefined**.
1. [=map/Set=] |reading|["near"] to |near|.
1. [=map/Set=] |reading|["`near`"] to |near|.
1. Return |reading|.
</div>

Expand Down

0 comments on commit 0e039e6

Please sign in to comment.