]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.14: highlight the addition of hash/maphash package
authorDmitri Shuralyov <dmitshur@golang.org>
Tue, 18 Feb 2020 15:03:22 +0000 (10:03 -0500)
committerDmitri Shuralyov <dmitshur@golang.org>
Tue, 18 Feb 2020 20:21:35 +0000 (20:21 +0000)
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 <dmitshur@golang.org>
Reviewed-by: Toshihiro Shiino <shiino.toshihiro@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

doc/go1.14.html

index 0c34245f622ecb2fc34c323672e4924620ac98cf..f83b365704d2288e6caabdb44d471333da5ee7a4 100644 (file)
@@ -405,8 +405,22 @@ appropriately.)
 
 <h2 id="library">Core library</h2>
 
+<h3 id="hash/maphash">New byte sequence hashing package</h3>
+
+<p> <!-- golang.org/issue/28322, CL 186877 -->
+  Go 1.14 includes a new package,
+  <a href="/pkg/hash/maphash/"><code>hash/maphash</code></a>,
+  which provides hash functions on byte sequences.
+  These hash functions are intended to be used to implement hash tables or
+  other data structures that need to map arbitrary strings or byte
+  sequences to a uniform distribution on unsigned 64-bit integers.
+</p>
+<p>
+  The hash functions are collision-resistant but not cryptographically secure.
+</p>
 <p>
-  All of the changes to the standard library are minor.
+  The hash value of a given byte sequence is consistent within a
+  single process, but will be different in different processes.
 </p>
 
 <h3 id="minor_library_changes">Minor changes to the library</h3>
@@ -603,24 +617,6 @@ appropriately.)
   </dd>
 </dl><!-- go/doc -->
 
-<dl id="hash/maphash"><dt><a href="/pkg/hash/maphash/">hash/maphash</a></dt>
-  <dd>
-    <p><!-- CL 186877 -->
-      This new package provides hash functions on byte sequences.
-      These hash functions are intended to be used to implement hash tables or
-      other data structures that need to map arbitrary strings or byte
-      sequences to a uniform distribution of integers.
-    </p>
-    <p>
-      The hash functions are collision-resistant but not cryptographically secure.
-    </p>
-    <p>
-      The hash value of a given byte sequence is consistent within a
-      single process, but will be different in different processes.
-    </p>
-  </dd>
-</dl><!-- hash/maphash -->
-
 <dl id="io/ioutil"><dt><a href="/pkg/io/ioutil/">io/ioutil</a></dt>
   <dd>
     <p><!-- CL 198488 -->