Skip to content

Commit

Permalink
Cosmetic change
Browse files Browse the repository at this point in the history
  • Loading branch information
ipfreely-uk committed Jun 28, 2024
1 parent 10f02db commit f4c7fb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ <h2 id="example">Example <a href="#example" class="link-symbol" title="implement
<p>This Go code picks a random address from a subnet:</p>

<pre><code>
<em>// Picks random IP address from CIDR block</em>
<span class="keyword">func</span> <span class="func">pickFrom</span><span class="generics">[A ip.Address[A]]</span>(b <span class="type">network.Block[A]</span>) <span class="type">A</span> {
<em>// Random IP address from CIDR block</em>
<span class="keyword">func</span> <span class="func">randFrom</span><span class="generics">[A ip.Address[A]]</span>(b <span class="type">network.Block[A]</span>) <span class="type">A</span> {
netAddr := b.First()
inverseMask := b.Mask().Not()
f := netAddr.Family()
Expand Down

0 comments on commit f4c7fb5

Please sign in to comment.