From 44bcceb8dc82e1545fbf1fc16f975807899bddc9 Mon Sep 17 00:00:00 2001 From: Ole Morten Halvorsen Date: Sun, 14 Apr 2019 15:31:51 +0200 Subject: `public_key:pem_decode` example wasn't using `pem_decode` Added actual usage of `pem_decode` to doc example. --- lib/public_key/doc/src/public_key.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/public_key/doc') 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.

Decodes PEM binary data and returns entries as ASN.1 DER encoded entities.

-

Example {ok, PemBin} = file:read_file("cert.pem").

+

Example {ok, PemBin} = file:read_file("cert.pem"). + PemEntries = public_key:pem_decode(PemBin). +

-- cgit v1.2.3