Skip to content

Commit 477fd1f

Browse files
committed
Make a couple other examples work
1 parent 6906812 commit 477fd1f

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

v0.3/handbook/libraries/stdlib.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,18 @@ bind
395395
number of hours from the Prime Meridian
396396
~~~
397397
search
398-
[#city latitude longitude]
399-
hours-from-gmt = math/absolute[value: latitude] / 15
398+
[#city name longitude]
399+
hours-from-gmt = math/absolute[value: longitude] * 24 / 360
400400
bind
401-
[#ui/text text: "{{city}} is {{hours-from-gmt}} hours from the Prime Meridian"]
401+
[#ui/text text: "{{name}} is {{hours-from-gmt}} hours from the Prime Meridian"]
402+
~~~
403+
404+
Add some cities
405+
~~~
406+
commit
407+
[#city name: "Paris" longitude: 2.33]
408+
[#city name: "New York" longitude: -75.61]
409+
[#city name: "Los Angeles" longitude: -118.24]
402410
~~~
403411
</code>
404412
</td>
@@ -517,8 +525,6 @@ commit
517525
</td>
518526
<td>
519527
<code>
520-
[#website body]
521-
</code>
522528
Americanized version of British spelling
523529
~~~
524530
search
@@ -527,6 +533,7 @@ search
527533
bind
528534
[#ui/text text: american-version]
529535
~~~
536+
</code>
530537
</td>
531538
</tr>
532539
</table>
@@ -635,7 +642,7 @@ bind
635642
search
636643
index = string/index-of[text: "developers", substring: "eve"]
637644
bind
638-
[#ui/text: "String found at index {{index}}"]
645+
[#ui/text text: "String found at index {{index}}"]
639646
~~~
640647
</code>
641648
</td>

0 commit comments

Comments
 (0)