瀏覽代碼

Fix natspec comment missing * (#5136)

Hadrien Croubois 1 年之前
父節點
當前提交
e3786e63e6
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      contracts/utils/structs/Heap.sol
  2. 1 1
      scripts/generate/templates/Heap.js

+ 2 - 2
contracts/utils/structs/Heap.sol

@@ -218,7 +218,7 @@ library Heap {
         }
     }
 
-    /*
+    /**
      * @dev Swap node `i` and `j` in the tree.
      */
     function _swap(Uint256Heap storage self, uint64 i, uint64 j) private {
@@ -485,7 +485,7 @@ library Heap {
         }
     }
 
-    /*
+    /**
      * @dev Swap node `i` and `j` in the tree.
      */
     function _swap(Uint208Heap storage self, uint24 i, uint24 j) private {

+ 1 - 1
scripts/generate/templates/Heap.js

@@ -220,7 +220,7 @@ function clear(${struct} storage self) internal {
     }
 }
 
-/*
+/**
  * @dev Swap node \`i\` and \`j\` in the tree.
  */
 function _swap(${struct} storage self, ${indexType} i, ${indexType} j) private {