Skip to content

Commit b661495

Browse files
committed
Update documentation
1 parent 2e3fcab commit b661495

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

_sources/chap07.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114863,7 +114863,7 @@
114863114863
"## Search\n",
114864114864
"\n",
114865114865
"Based on this simpler version of `has_e`, let's write a more general function called `uses_any` that takes a second parameter that is a string of letters.\n",
114866-
"If returns `True` if the word uses any of the letters and `False` otherwise."
114866+
"It returns `True` if the word uses any of the letters and `False` otherwise."
114867114867
]
114868114868
},
114869114869
{
@@ -115172,7 +115172,7 @@
115172115172
" A variable used to count something, usually initialized to zero and then incremented.\n",
115173115173
"\n",
115174115174
"**linear search:**\n",
115175-
"A computational pattern that searches through a sequence of elements and stops what it finds what it is looking for.\n",
115175+
"A computational pattern that searches through a sequence of elements and stops when it finds what it is looking for.\n",
115176115176
"\n",
115177115177
"**pass:**\n",
115178115178
"If a test runs and the result is as expected, the test passes.\n",

chap07.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ <h2><span class="section-number">7.5. </span>The in operator<a class="headerlink
862862
<section id="search">
863863
<h2><span class="section-number">7.6. </span>Search<a class="headerlink" href="#search" title="Link to this heading">#</a></h2>
864864
<p>Based on this simpler version of <code class="docutils literal notranslate"><span class="pre">has_e</span></code>, let’s write a more general function called <code class="docutils literal notranslate"><span class="pre">uses_any</span></code> that takes a second parameter that is a string of letters.
865-
If returns <code class="docutils literal notranslate"><span class="pre">True</span></code> if the word uses any of the letters and <code class="docutils literal notranslate"><span class="pre">False</span></code> otherwise.</p>
865+
It returns <code class="docutils literal notranslate"><span class="pre">True</span></code> if the word uses any of the letters and <code class="docutils literal notranslate"><span class="pre">False</span></code> otherwise.</p>
866866
<div class="cell docutils container">
867867
<div class="cell_input docutils container">
868868
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">uses_any</span><span class="p">(</span><span class="n">word</span><span class="p">,</span> <span class="n">letters</span><span class="p">):</span>
@@ -1035,7 +1035,7 @@ <h2><span class="section-number">7.8. </span>Glossary<a class="headerlink" href=
10351035
<p><strong>counter:</strong>
10361036
A variable used to count something, usually initialized to zero and then incremented.</p>
10371037
<p><strong>linear search:</strong>
1038-
A computational pattern that searches through a sequence of elements and stops what it finds what it is looking for.</p>
1038+
A computational pattern that searches through a sequence of elements and stops when it finds what it is looking for.</p>
10391039
<p><strong>pass:</strong>
10401040
If a test runs and the result is as expected, the test passes.</p>
10411041
<p><strong>fail:</strong>

0 commit comments

Comments
 (0)