aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key
diff options
context:
space:
mode:
authorOle Morten Halvorsen <[email protected]>2019-04-14 15:31:51 +0200
committerGitHub <[email protected]>2019-04-14 15:31:51 +0200
commit44bcceb8dc82e1545fbf1fc16f975807899bddc9 (patch)
tree6a85e29acabd44ce00428b9b15ed970f04751036 /lib/public_key
parentc281c20efc39a5ca3049157e4ea0554c57c426a3 (diff)
downloadotp-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.
Diffstat (limited to 'lib/public_key')
-rw-r--r--lib/public_key/doc/src/public_key.xml4
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>