Skip to content

Commit

Permalink
§4.6: Amend Arrays Syntax Definition
Browse files Browse the repository at this point in the history
Remove the space between `<arrayname>` and `[<array size>]` from the
syntax definition:

    array <arrayname> [<array size>]

Since it's a minor change, no need to mention it in `CHANGES.md`.

(fixes #60)
  • Loading branch information
tajmone committed Mar 7, 2020
1 parent d233488 commit c967217
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ <h1>The Hugo Book</h1>
<span id="author" class="author">Kent Tessman</span><br>
<span id="email" class="email"><a href="mailto:general@generalcoffee.com">general@generalcoffee.com</a></span><br>
<span id="revnumber">v 1.1.0-devel,</span>
<span id="revdate">2020/03/07</span>
<span id="revdate">2020/03/08</span>
<br><span id="revremark">1st Ed. revised January 2020</span>
</div>
<div id="toc" class="toc2">
Expand Down Expand Up @@ -5483,7 +5483,7 @@ <h3 id="sec_4-6"><a class="anchor" href="#sec_4-6"></a>4.6. Arrays and Strings</
</div>
<div class="literalblock hugosyntax">
<div class="content">
<pre>array &lt;arrayname&gt; [&lt;array size&gt;]</pre>
<pre>array &lt;arrayname&gt;[&lt;array size&gt;]</pre>
</div>
</div>
<div class="paragraph">
Expand Down
2 changes: 1 addition & 1 deletion docs_src/hugo-book.asciidoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= The Hugo Book
Kent Tessman <general@generalcoffee.com>
:revnumber: 1.1.0-devel
:revdate: 2020/03/07
:revdate: 2020/03/08
:edition: 1st Ed.
:editionrev: January 2020
:revremark: {edition} revised {editionrev}
Expand Down
6 changes: 3 additions & 3 deletions docs_src/hugo-book1_04.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -967,9 +967,9 @@ Arrays are sets of values that share a common name, and where the elements are r
Arrays are defined by

[literal,role="hugosyntax"]
................................
array <arrayname> [<array size>]
................................
...............................
array <arrayname>[<array size>]
...............................

where `<array size>` must be a numerical constant.

Expand Down
8 changes: 4 additions & 4 deletions hugo-book.asciidoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= The Hugo Book
Kent Tessman <general@generalcoffee.com>
:revnumber: 1.1.0-devel
:revdate: 2020/03/07
:revdate: 2020/03/08
:edition: 1st Ed.
:editionrev: January 2020
:revremark: {edition} revised {editionrev}
Expand Down Expand Up @@ -3426,9 +3426,9 @@ Arrays are sets of values that share a common name, and where the elements are r
Arrays are defined by

[literal,role="hugosyntax"]
................................
array <arrayname> [<array size>]
................................
...............................
array <arrayname>[<array size>]
...............................

where `<array size>` must be a numerical constant.

Expand Down
4 changes: 2 additions & 2 deletions hugo-book.html
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ <h1>The Hugo Book</h1>
<span id="author" class="author">Kent Tessman</span><br>
<span id="email" class="email"><a href="mailto:general@generalcoffee.com">general@generalcoffee.com</a></span><br>
<span id="revnumber">v 1.1.0-devel,</span>
<span id="revdate">2020/03/07</span>
<span id="revdate">2020/03/08</span>
<br><span id="revremark">1st Ed. revised January 2020</span>
</div>
<div id="toc" class="toc2">
Expand Down Expand Up @@ -5483,7 +5483,7 @@ <h3 id="sec_4-6"><a class="anchor" href="#sec_4-6"></a>4.6. Arrays and Strings</
</div>
<div class="literalblock hugosyntax">
<div class="content">
<pre>array &lt;arrayname&gt; [&lt;array size&gt;]</pre>
<pre>array &lt;arrayname&gt;[&lt;array size&gt;]</pre>
</div>
</div>
<div class="paragraph">
Expand Down

0 comments on commit c967217

Please sign in to comment.