Skip to content

Commit f84ddf0

Browse files
committed
Fix typo
1 parent f3239b8 commit f84ddf0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/modules.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ <h1>Modules</h1>
187187
</pre>
188188
<p><span class="label function">span</span> is kind of like <span class="fixed">takeWhile</span>, only it returns a pair of lists. The first list contains everything the resulting list from <span class="fixed">takeWhile</span> would contain if it were called with the same predicate and the same list. The second list contains the part of the list that would have been dropped.</p>
189189
<pre name="code" class="haskell:ghci">
190-
ghci&gt; let (fw, rest) = span (/=' ') "This is a sentence" in "First word:" ++ fw ++ ", the rest:" ++ rest
190+
ghci&gt; let (fw, rest) = span (/=' ') "This is a sentence" in "First word: " ++ fw ++ ", the rest:" ++ rest
191191
"First word: This, the rest: is a sentence"
192192
</pre>
193193
<p>Whereas <span class="fixed">span</span> spans the list while the predicate is true, <span class="label function">break</span> breaks it when the predicate is first true. Doing <span class="fixed">break p</span> is the equivalent of doing <span class="fixed">span (not . p)</span>. </p>

markdown/generated_html/modules.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ <h2 id="data-list">Data.List</h2>
285285
contain if it were called with the same predicate and the same list. The
286286
second list contains the part of the list that would have been
287287
dropped.</p>
288-
<pre class="haskell:ghci"><code>ghci&gt; let (fw, rest) = span (/=&#39; &#39;) &quot;This is a sentence&quot; in &quot;First word:&quot; ++ fw ++ &quot;, the rest:&quot; ++ rest
288+
<pre class="haskell:ghci"><code>ghci&gt; let (fw, rest) = span (/=&#39; &#39;) &quot;This is a sentence&quot; in &quot;First word: &quot; ++ fw ++ &quot;, the rest:&quot; ++ rest
289289
&quot;First word: This, the rest: is a sentence&quot;</code></pre>
290290
<p>Whereas <code>span</code> spans the list while the predicate is true,
291291
<code class="label function">break</code> breaks it when the predicate

markdown/source_md/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ The first list contains everything the resulting list from `takeWhile` would con
277277
The second list contains the part of the list that would have been dropped.
278278

279279
```{.haskell:ghci}
280-
ghci> let (fw, rest) = span (/=' ') "This is a sentence" in "First word:" ++ fw ++ ", the rest:" ++ rest
280+
ghci> let (fw, rest) = span (/=' ') "This is a sentence" in "First word: " ++ fw ++ ", the rest:" ++ rest
281281
"First word: This, the rest: is a sentence"
282282
```
283283

0 commit comments

Comments
 (0)