Skip to content

Commit 3f2cd83

Browse files
committed
fix typo
1 parent 991858d commit 3f2cd83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3347,7 +3347,7 @@ <h1><span class="secnum">1.1.7</span> LocaleDirection ( <var>loc</var> )</h1>
33473347
<p>The abstract operation LocaleDirection takes argument <var>loc</var> (an Intl.Locale) and returns a String or <emu-val>undefined</emu-val>. The following algorithm refers to Locale data specified in <a href="https://www.unicode.org/reports/tr35/tr35-general.html#Layout_Elements" data-print-href="">UTS 35's Layouts Elements</a>. It performs the following steps when called:</p>
33483348
<emu-alg><ol><li>Let <var>locale</var> be <var>loc</var>.<var class="field">[[Locale]]</var>.</li><li>Let <var>script</var> be <emu-xref aoid="GetLocaleScript"><a href="https://tc39.es/ecma402/#sec-getlocalescript">GetLocaleScript</a></emu-xref>(<var>locale</var>).</li><li>If <var>script</var> is <emu-val>undefined</emu-val>, then<ol><li>Let <var>maximal</var> be the result of the <a href="https://unicode.org/reports/tr35/#Likely_Subtags" data-print-href="">Add Likely Subtags</a> algorithm applied to <var>locale</var>. If an error is signaled, return <emu-val>undefined</emu-val>.</li><li>Set <var>script</var> to <emu-xref aoid="GetLocaleScript"><a href="https://tc39.es/ecma402/#sec-getlocalescript">GetLocaleScript</a></emu-xref>(<var>maximal</var>).</li><li>If <var>script</var> is <emu-val>undefined</emu-val>, return <emu-val>undefined</emu-val>.</li></ol></li><li>If the default general ordering of characters within a line in <var>script</var> is right-to-left, return "rtl".</li><li>If the default general ordering of characters within a line in <var>script</var> is left-to-right, return "ltr".</li><li>If the default general ordering of characters within a line in <var>script</var> is top-to-bottom, return "ttb".</li><li>Return <emu-val>undefined</emu-val>.</li></ol></emu-alg>
33493349
<emu-note><span class="note">Note</span><div class="note-contents">
3350-
When the direction of default general ordering of characters within a line in the <var>script</var> cannot be determined, or the diretion is not one of right-to-left, left-to-right, or top-to-bottom, then <emu-val>undefined</emu-val> will be returned.
3350+
When the direction of default general ordering of characters within a line in the <var>script</var> cannot be determined, or the direction is not one of right-to-left, left-to-right, or top-to-bottom, then <emu-val>undefined</emu-val> will be returned.
33513351
</div></emu-note>
33523352
</emu-clause>
33533353

locale.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h1>
124124
1. Return *undefined*.
125125
</emu-alg>
126126
<emu-note>
127-
When the direction of default general ordering of characters within a line in the _script_ cannot be determined, or the diretion is not one of right-to-left, left-to-right, or top-to-bottom, then *undefined* will be returned.
127+
When the direction of default general ordering of characters within a line in the _script_ cannot be determined, or the direction is not one of right-to-left, left-to-right, or top-to-bottom, then *undefined* will be returned.
128128
</emu-note>
129129
</emu-clause>
130130

0 commit comments

Comments
 (0)