aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-doc/src
diff options
context:
space:
mode:
authorF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-09-24 22:21:12 +0800
committerF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-09-25 00:29:02 +0800
commit880cd6e440c76d819cdb04d2971375cf9e0ea97b (patch)
treee9966bdf36c101355265b67b8fd71feaa770d86a /packages/sol-doc/src
parent98d06d6d252ed379d60bcef915caf38a5ec7a5af (diff)
downloaddexon-sol-tools-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar
dexon-sol-tools-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar.gz
dexon-sol-tools-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar.bz2
dexon-sol-tools-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar.lz
dexon-sol-tools-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar.xz
dexon-sol-tools-880cd6e440c76d819cdb04d2971375cf9e0ea97b.tar.zst
dexon-sol-tools-880cd6e440c76d819cdb04d2971375cf9e0ea97b.zip
fix: document return value's type, not its name
Diffstat (limited to 'packages/sol-doc/src')
-rw-r--r--packages/sol-doc/src/solidity_doc_generator.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sol-doc/src/solidity_doc_generator.ts b/packages/sol-doc/src/solidity_doc_generator.ts
index 074fb1f37..b2b5daff3 100644
--- a/packages/sol-doc/src/solidity_doc_generator.ts
+++ b/packages/sol-doc/src/solidity_doc_generator.ts
@@ -291,11 +291,11 @@ function _genMethodReturnTypeDoc(
methodReturnTypeDoc.typeDocType = TypeDocTypes.Tuple;
methodReturnTypeDoc.tupleElements = [];
for (const output of outputs) {
- methodReturnTypeDoc.tupleElements.push({ name: output.name, typeDocType: TypeDocTypes.Intrinsic });
+ methodReturnTypeDoc.tupleElements.push({ name: output.type, typeDocType: TypeDocTypes.Intrinsic });
}
} else if (outputs.length === 1) {
methodReturnTypeDoc.typeDocType = TypeDocTypes.Intrinsic;
- methodReturnTypeDoc.name = outputs[0].name;
+ methodReturnTypeDoc.name = outputs[0].type;
}
return methodReturnTypeDoc;
}