diff options
author | Ole Morten Halvorsen <[email protected]> | 2019-04-14 15:31:51 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2019-04-14 15:31:51 +0200 |
commit | 44bcceb8dc82e1545fbf1fc16f975807899bddc9 (patch) | |
tree | 6a85e29acabd44ce00428b9b15ed970f04751036 | |
parent | c281c20efc39a5ca3049157e4ea0554c57c426a3 (diff) | |
download | otp-44bcceb8dc82e1545fbf1fc16f975807899bddc9.tar.gz otp-44bcceb8dc82e1545fbf1fc16f975807899bddc9.tar.bz2 otp-44bcceb8dc82e1545fbf1fc16f975807899bddc9.zip |
`public_key:pem_decode` example wasn't using `pem_decode`
Added actual usage of `pem_decode` to doc example.
-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 b7589f6653..b0f0d81766 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> |