prb-math
prb-math copied to clipboard
Fix comment in "PRBMath.sqrt"
trafficstars
As @nonergodic has aptly mentioned here, the comment on line 604 of PRBMath.sol is incorrect:
https://github.com/paulrberg/prb-math/blob/e33a042e4d1673fe9b333830b75c4765ccf3f5f2/contracts/PRBMath.sol#L604
Instead the comment should say something along the line of:
Set the initial guess to the
largestpower of two that issmallerthan or equal to sqrt(x)
Relevant link: see OpenZeppelin's implementation.