diff options
author | Ingela Andin <[email protected]> | 2019-04-24 14:46:01 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2019-04-24 14:46:01 +0200 |
commit | ae53f331a31e6b56382f7b0a791a6f3644542a6a (patch) | |
tree | 536b73fafa96d32756034213b1eb1b29312f5a55 /lib/public_key/doc | |
parent | d3ce6a22bc2fce0607f9ab131dcea160b1d66521 (diff) | |
parent | 44bcceb8dc82e1545fbf1fc16f975807899bddc9 (diff) | |
download | otp-ae53f331a31e6b56382f7b0a791a6f3644542a6a.tar.gz otp-ae53f331a31e6b56382f7b0a791a6f3644542a6a.tar.bz2 otp-ae53f331a31e6b56382f7b0a791a6f3644542a6a.zip |
Merge pull request #2210 from omh/patch-1
`public_key:pem_decode` example wasn't using `pem_decode`
Diffstat (limited to 'lib/public_key/doc')
-rw-r--r-- | lib/public_key/doc/src/public_key.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public_key/doc/src/public_key.xml b/lib/public_key/doc/src/public_key.xml index 8db5620686..12bb0b21b0 100644 --- a/lib/public_key/doc/src/public_key.xml +++ b/lib/public_key/doc/src/public_key.xml @@ -286,7 +286,9 @@ entries as ASN.1 DER encoded entities.</fsummary> <desc> <p>Decodes PEM binary data and returns entries as ASN.1 DER encoded entities.</p> - <p>Example <c>{ok, PemBin} = file:read_file("cert.pem").</c></p> + <p>Example <c>{ok, PemBin} = file:read_file("cert.pem"). + PemEntries = public_key:pem_decode(PemBin). + </c></p> </desc> </func> |