From 255d5450280c30b8e8f83d79281abd1fbadcfa02 Mon Sep 17 00:00:00 2001 From: Tomas Morstein Date: Sun, 29 Sep 2013 20:13:12 +0200 Subject: fix a little typo in public_key documentation In the example of `public_key:pem_entry_encode/2`, the result should match to `PemEntry` rather than to `PemBin` since `PemEntry` is expected as an input argument of `public_key:pem_encode/1` called just on the next line of the example. --- lib/public_key/doc/src/using_public_key.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/public_key/doc/src/using_public_key.xml b/lib/public_key/doc/src/using_public_key.xml index 5d9f1536d9..b744704c47 100644 --- a/lib/public_key/doc/src/using_public_key.xml +++ b/lib/public_key/doc/src/using_public_key.xml @@ -350,7 +350,7 @@ ok

or

- 1> PemBin = public_key:pem_entry_encode('SubjectPublicKeyInfo', RSAPubKey). + 1> PemEntry = public_key:pem_entry_encode('SubjectPublicKeyInfo', RSAPubKey). {'SubjectPublicKeyInfo', <<48,92...>>, not_encrypted} 2> PemBin = public_key:pem_encode([PemEntry]). -- cgit v1.2.3