mirror of
https://github.com/golang/go
synced 2024-11-23 14:00:03 -07:00
crypto/x509: clarify docs for SystemCertPool
The sentence in the docs for SystemCertPool that states that mutations
to a returned pool do not affect any other pool is ambiguous as to who
the any other pools are, because pools can be created in multiple ways
that have nothing to do with the system certificate pool. Also the use
of the word 'the' instead of 'a' early in the sentence implies there is
only one shared pool ever returned.
Fixes #27385
Change-Id: I43adbfca26fdd66c4adbf06eb85361139a1dea93
GitHub-Last-Rev: 2f1ba09fa4
GitHub-Pull-Request: golang/go#27388
Reviewed-on: https://go-review.googlesource.com/132378
Reviewed-by: Filippo Valsorda <filippo@golang.org>
This commit is contained in:
parent
3eb0b2e80d
commit
8201b92aae
@ -47,8 +47,8 @@ func (s *CertPool) copy() *CertPool {
|
|||||||
|
|
||||||
// SystemCertPool returns a copy of the system cert pool.
|
// SystemCertPool returns a copy of the system cert pool.
|
||||||
//
|
//
|
||||||
// Any mutations to the returned pool are not written to disk and do
|
// Any mutations to a returned pool are not written to disk and do
|
||||||
// not affect any other pool.
|
// not affect any other pool returned by SystemCertPool.
|
||||||
//
|
//
|
||||||
// New changes in the the system cert pool might not be reflected
|
// New changes in the the system cert pool might not be reflected
|
||||||
// in subsequent calls.
|
// in subsequent calls.
|
||||||
|
Loading…
Reference in New Issue
Block a user