Skip to content

Commit

Permalink
Fix typos (#365)
Browse files Browse the repository at this point in the history
* Fix typos

* Fix typo in src/libraries/Lockers.sol
  • Loading branch information
xiaolou86 authored and zhongeric committed Dec 14, 2023
1 parent 874115d commit 1831ace
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/libraries/Lockers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ library Lockers {
}

/// @notice Potential to underflow.
/// Current useage ensures this will not happen because we call decrememnt with known boundaries (only up to the numer of times we call increment).
/// Current usage ensures this will not happen because we call decrememnt with known boundaries (only up to the numer of times we call increment).
function decrementNonzeroDeltaCount() internal {
uint256 slot = NONZERO_DELTA_COUNT;
assembly {
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/Pool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ library Pool {
/// @param tick The uninitialized tick
error TickNotInitialized(int24 tick);

/// @notice Thrown when trying to initalize an already initialized pool
/// @notice Thrown when trying to initialize an already initialized pool
error PoolAlreadyInitialized();

/// @notice Thrown when trying to interact with a non-initialized pool
Expand Down
4 changes: 2 additions & 2 deletions test/TickMath.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ contract TickMathTestTest is Test, JavascriptFfi {
for (uint256 i = 0; i < 2; i++) {
tick = tick * -1;
if (tick != -50) jsParameters = string(abi.encodePacked(jsParameters, ",")); // do not leave comma in front of first number
// add tick to javascript parameters to be calulated inside script
// add tick to javascript parameters to be calculated inside script
jsParameters = string(abi.encodePacked(jsParameters, vm.toString(int256(tick))));
// track solidity result for tick
getSqrtRatioAtTickFuzzResults.push(tickMath.getSqrtRatioAtTick(tick));
Expand Down Expand Up @@ -153,7 +153,7 @@ contract TickMathTestTest is Test, JavascriptFfi {
unchecked {
while (sqrtRatio < sqrtRatio * 16) {
if (sqrtRatio != MIN_SQRT_RATIO) jsParameters = string(abi.encodePacked(jsParameters, ",")); // do not leave comma in front of first number
// add tick to javascript parameters to be calulated inside script
// add tick to javascript parameters to be calculated inside script
jsParameters = string(abi.encodePacked(jsParameters, vm.toString(sqrtRatio)));
// track solidity result for sqrtRatio
getTickAtSqrtRatioFuzzResults.push(tickMath.getTickAtSqrtRatio(sqrtRatio));
Expand Down

0 comments on commit 1831ace

Please sign in to comment.