Skip to content

Commit 0b0de5f

Browse files
committed
instead of an array we can return a string for a faster print execution
1 parent 4d61173 commit 0b0de5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/slang-nodes/AddressType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ export class AddressType extends SlangNode {
1717
}
1818

1919
print(): Doc {
20-
return ['address', this.payableKeyword ? ' payable' : ''];
20+
return `address${this.payableKeyword ? ' payable' : ''}`;
2121
}
2222
}

0 commit comments

Comments
 (0)