Skip to content

Commit 5ac5ca3

Browse files
committed
build
1 parent c2754ec commit 5ac5ca3

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.anvil
2-
**/**.pyc
2+
*.pyc

public/execing-processes

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function.</p>
7979
<tr>
8080
<td class="docs">
8181
<p>For our example we&rsquo;ll exec <code>ls</code>. Go requires an
82-
abolute path to the binary we want to execute, so
82+
absolute path to the binary we want to execute, so
8383
we&rsquo;ll use <code>exec.LookPath</code> to find it (probably
8484
<code>/bin/ls</code>).</p>
8585

@@ -125,7 +125,7 @@ environment.</p>
125125
<tr>
126126
<td class="docs">
127127
<p>Here&rsquo;s the actual <code>os.Exec</code> call. If this call is
128-
succesful, the execution of our process will end
128+
successful, the execution of our process will end
129129
here and be replaced by the <code>/bin/ls -a -l -h</code>
130130
process. If there is an error we&rsquo;ll get a return
131131
value.</p>

public/range

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ the indexes though.</p>
112112

113113
</td>
114114
<td class="code leading">
115-
<div class="highlight"><pre> <span class="nx">kvs</span> <span class="o">:=</span> <span class="kd">map</span><span class="p">[</span><span class="kt">string</span><span class="p">]</span><span class="kt">string</span><span class="p">{</span><span class="s">&quot;a&quot;</span><span class="p">:</span> <span class="s">&quot;apple&quot;</span><span class="p">,</span> <span class="s">&quot;b&quot;</span><span class="p">:</span> <span class="s">&quot;bannana&quot;</span><span class="p">}</span>
115+
<div class="highlight"><pre> <span class="nx">kvs</span> <span class="o">:=</span> <span class="kd">map</span><span class="p">[</span><span class="kt">string</span><span class="p">]</span><span class="kt">string</span><span class="p">{</span><span class="s">&quot;a&quot;</span><span class="p">:</span> <span class="s">&quot;apple&quot;</span><span class="p">,</span> <span class="s">&quot;b&quot;</span><span class="p">:</span> <span class="s">&quot;banana&quot;</span><span class="p">}</span>
116116
<span class="k">for</span> <span class="nx">k</span><span class="p">,</span> <span class="nx">v</span> <span class="o">:=</span> <span class="k">range</span> <span class="nx">kvs</span> <span class="p">{</span>
117117
<span class="nx">fmt</span><span class="p">.</span><span class="nx">Printf</span><span class="p">(</span><span class="s">&quot;%s -&gt; %s\n&quot;</span><span class="p">,</span> <span class="nx">k</span><span class="p">,</span> <span class="nx">v</span><span class="p">)</span>
118118
<span class="p">}</span>

public/reading-files

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ accomplishes this.</p>
192192
<tr>
193193
<td class="docs">
194194
<p>The <code>bufio</code> package implements a buffered
195-
reader that may be useful both for it&rsquo;s efficiency
195+
reader that may be useful both for its efficiency
196196
with many small reads and because of the additional
197197
reading methods it provides.</p>
198198

public/sorting-by-functions

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ type.</p>
8080
<p>We implement <code>sort.Interface</code> - <code>Len</code>, <code>Less</code>, and
8181
<code>Swap</code> - on our type so we can use the <code>sort</code> package&rsquo;s
8282
generic <code>Sort</code> function. <code>Len</code> and <code>Swap</code>
83-
will usually be similar accross types and <code>Less</code> will
83+
will usually be similar across types and <code>Less</code> will
8484
hold the actual custom sorting logic. In our case we
8585
want to sort in order of increasing string length, so
8686
we use <code>len(s[i])</code> and <code>len(s[j])</code> here.</p>

0 commit comments

Comments
 (0)