contract SimpleComments {
mapping(address /* asset */ => address /* router */) public router;
constructor() {
// TODO: do this and that
uint256 a = 1;
// TODO: do that and this
// or maybe
// smth else
}
function test() public view {
// do smth here
// then here
// cleanup
}
function test2() public pure {
uint a = 1;
// comment 1
// comment 2
uint b = 2;
}
function test3() public view {
uint256 a = 1; // comment
// line comment
}
function test4() public view returns (uint256) {
uint256 abc; // long postfix comment that exceeds line width. the comment should be split and carried over to the next line
uint256 abc2; // reallylongsinglewordcommentthatexceedslinewidththecommentshouldbesplitandcarriedovertothenextline
// long prefix comment that exceeds line width. the comment should be split and carried over to the next line
// reallylongsinglewordcommentthatexceedslinewidththecommentshouldbesplitandcarriedovertothenextline
uint256 c;
/* a really really long prefix block comment that exceeds line width */
uint256 d; /* a really really long postfix block comment that exceeds line width */
uint256 value;
return /* a long block comment that exceeds line width */ value;
return /* a block comment that exceeds line width */ value;
return // a line comment that exceeds line width
value;
}
}
/*
██████╗ ██████╗ ██████╗ ████████╗███████╗███████╗████████╗
██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝
██████╔╝██████╔╝██████╔╝ ██║ █████╗ ███████╗ ██║
██╔═══╝ ██╔══██╗██╔══██╗ ██║ ██╔══╝ ╚════██║ ██║
██║ ██║ ██║██████╔╝ ██║ ███████╗███████║ ██║
╚═╝ ╚═╝ ╚═╝╚═════╝ ╚═╝ ╚══════╝╚══════╝ ╚═╝
*/
function asciiArt() {}
/*
* @notice Here is my comment
* - item 1
* - item 2
* Some equations:
* y = mx + b
*/
function test() {}
// comment after function
// comment with extra newlines
// some comment
// another comment
// eof comment