Skip to content

Commit 3aba9d0

Browse files
committed
Remove explanation for init.
since the code does not have it.
1 parent 315f653 commit 3aba9d0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: _content/doc/tutorial/random-greeting.html

-7
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,6 @@
9191
>
9292
to generate a random number for selecting an item from the slice.
9393
</li>
94-
<li>
95-
Add an <code>init</code> function to seed the <code>rand</code> package
96-
with the current time. Go executes <code>init</code> functions
97-
automatically at program startup, after global variables have been
98-
initialized. For more about <code>init</code> functions, see
99-
<a href="/doc/effective_go.html#init">Effective Go</a>.
100-
</li>
10194
<li>
10295
In <code>Hello</code>, call the <code>randomFormat</code> function to
10396
get a format for the message you'll return, then use the format and

0 commit comments

Comments
 (0)