From aca7a14275b37a3a3ffe401d25704984337ac482 Mon Sep 17 00:00:00 2001 From: Sergey Karpuk Date: Thu, 15 Aug 2019 10:22:59 +0300 Subject: [PATCH] fix docs --- src/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 27c7ea7..1fa82a3 100644 --- a/src/index.js +++ b/src/index.js @@ -12,8 +12,8 @@ export const attach = (tag, data) => pairs.cons(tag, data); * Get type of tagged data * @name typeTag * @example - * attach('simpleTag', card); - * typeTag(taggedData); // simpleTag + * const tag = attach('simpleTag', card); + * typeTag(tag); // simpleTag */ export const typeTag = taggedData => pairs.car(taggedData); @@ -21,7 +21,7 @@ export const typeTag = taggedData => pairs.car(taggedData); * Get contents from tagged data * @name contents * @example - * attach('complexTag', cons(1, 2)); - * typeTag(contents); // (1, 2) + * const tag = attach('complexTag', cons(1, 2)); + * contents(tag); // (1, 2) */ export const contents = taggedData => pairs.cdr(taggedData);