Skip to content

Commit f524d9d

Browse files
authored
fix tutorial typo (#778)
1 parent 40b7444 commit f524d9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/tutorial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ fn TutorialThinkingWithArrays() -> impl IntoView {
13651365
<Hd id="masks-and-keep">"Masks and "<Prim prim=Keep/></Hd>
13661366
<p>"Many languages have some sort of "<code>"filter"</code>" function that takes a predicate and a list and returns a list of all the elements that satisfy the predicate. In array languages, we take a different approach."</p>
13671367
<p>"First, we create a "<em>"mask"</em>" array. A mask array is an array of "<code>"0"</code>"s and "<code>"1"</code>"s where "<code>"1"</code>"s represent the rows that satisfy the predicate. For pervasive functions, this is extremely simple."</p>
1368-
<p>"For example, if we wanted to create a mask of all numbers greater that 4, we simply treat the whole array as a single unit."</p>
1368+
<p>"For example, if we wanted to create a mask of all numbers greater than 4, we simply treat the whole array as a single unit."</p>
13691369
<Editor example=">4. [2 8 3 9 1 7 2]"/>
13701370
<p>"The "<Prim prim=Keep/>" function takes a mask array and an array and returns an array of all the rows that have a "<code>"1"</code>" in the mask. This is essentially a filter."</p>
13711371
<Editor example="▽ >4. [2 8 3 9 1 7 2]"/>

0 commit comments

Comments
 (0)