Skip to content

Commit

Permalink
Add link to docs and note about var modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Masa331 committed Oct 3, 2018
1 parent c9b6b90 commit 2c7851b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ <h2>Comments</h2>

<section>
<header>
<h2>Simple data types</h2>
<code><b><i>type</i> [public] <i>name</i>;</b></code>
<h2><a href="https://solidity.readthedocs.io/en/v0.4.25/types.html#value-types">Simple data types</a></h2>
<code><b><i>type</i> [public] [constant] <i>name</i>;</b></code>
<br />
<code>uint public amount;</code>
</header>
Expand All @@ -237,6 +237,10 @@ <h2>Simple data types</h2>
<code>delete amount;</code> - deletes variable content
</p>

<p>
Getters are automatically generated for <code>public</code> vars. <code>constant</code> vars have to be initialized on declaration.
</p>

<h3>Basic types</h3>
<p>
<code>bool</code>,
Expand Down

0 comments on commit 2c7851b

Please sign in to comment.