Skip to content

Commit 1cd724a

Browse files
committed
doc/go1.14: highlight the addition of hash/maphash package
Given that it's a package that did not exist before, was a proposal in issue #28322, got accepted and implemented for 1.14, it seems to be more than a minor change to the library. Highlight it accordingly. Also specify the results are 64-bit integers, as done in CL 219340. Updates #36878 Updates #28322 Change-Id: Idefe63d4c47a02cdcf8be8ab08c40cdb94ff2098 Reviewed-on: https://go-review.googlesource.com/c/go/+/219877 Run-TryBot: Dmitri Shuralyov <[email protected]> Reviewed-by: Toshihiro Shiino <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent a0cf2c8 commit 1cd724a

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

doc/go1.14.html

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,22 @@ <h2 id="compiler">Compiler</h2>
405405

406406
<h2 id="library">Core library</h2>
407407

408+
<h3 id="hash/maphash">New byte sequence hashing package</h3>
409+
410+
<p> <!-- golang.org/issue/28322, CL 186877 -->
411+
Go 1.14 includes a new package,
412+
<a href="/pkg/hash/maphash/"><code>hash/maphash</code></a>,
413+
which provides hash functions on byte sequences.
414+
These hash functions are intended to be used to implement hash tables or
415+
other data structures that need to map arbitrary strings or byte
416+
sequences to a uniform distribution on unsigned 64-bit integers.
417+
</p>
418+
<p>
419+
The hash functions are collision-resistant but not cryptographically secure.
420+
</p>
408421
<p>
409-
All of the changes to the standard library are minor.
422+
The hash value of a given byte sequence is consistent within a
423+
single process, but will be different in different processes.
410424
</p>
411425

412426
<h3 id="minor_library_changes">Minor changes to the library</h3>
@@ -603,24 +617,6 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
603617
</dd>
604618
</dl><!-- go/doc -->
605619

606-
<dl id="hash/maphash"><dt><a href="/pkg/hash/maphash/">hash/maphash</a></dt>
607-
<dd>
608-
<p><!-- CL 186877 -->
609-
This new package provides hash functions on byte sequences.
610-
These hash functions are intended to be used to implement hash tables or
611-
other data structures that need to map arbitrary strings or byte
612-
sequences to a uniform distribution of integers.
613-
</p>
614-
<p>
615-
The hash functions are collision-resistant but not cryptographically secure.
616-
</p>
617-
<p>
618-
The hash value of a given byte sequence is consistent within a
619-
single process, but will be different in different processes.
620-
</p>
621-
</dd>
622-
</dl><!-- hash/maphash -->
623-
624620
<dl id="io/ioutil"><dt><a href="/pkg/io/ioutil/">io/ioutil</a></dt>
625621
<dd>
626622
<p><!-- CL 198488 -->

0 commit comments

Comments
 (0)