Skip to content

Commit e6954c3

Browse files
authored
chore: fix typos
1 parent dac5314 commit e6954c3

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

docs/src/tools/Code-Similarity-Detector.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ INFO:Slither-simil:Saving cache in cache.npz
9898
INFO:Slither-simil:Done!
9999
```
100100

101-
After it runs, the `slither-simil` will output the the trained model in `model.bin`, a cache of every function for use in test mode in `cache.npz`, and the SlithIR of every function for debugging in `last_data_train.txt`.
101+
After it runs, the `slither-simil` will output the trained model in `model.bin`, a cache of every function for use in test mode in `cache.npz`, and the SlithIR of every function for debugging in `last_data_train.txt`.
102102

103103
### Plot mode
104104

@@ -109,7 +109,7 @@ Here's an example to plot all the functions named `add` from contracts named `Sa
109109
```
110110
$ slither-simil plot etherscan_verified_contracts.bin --fname SafeMath.add --input cache.npz --nsamples 500
111111
INFO:Slither-simil:Loading data..
112-
INFO:Slither-simil:Procesing data..
112+
INFO:Slither-simil:Processing data..
113113
INFO:Slither-simil:Plotting data..
114114
INFO:Slither-simil:Saving figure to plot.png..
115115
```
@@ -118,7 +118,7 @@ INFO:Slither-simil:Saving figure to plot.png..
118118

119119
This mode performs dimensionality reduction using PCA, so the axes you see here [are **not** associated with any particular unit](https://stats.stackexchange.com/questions/137813/the-meaning-of-units-on-the-axes-of-a-pca-plot).
120120

121-
It can can be also used to plot sets of functions using only a name from any contract (e.g. `burn`) .
121+
It can also be used to plot sets of functions using only a name from any contract (e.g. `burn`) .
122122

123123
### Info mode
124124

slither/core/cfg/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ def _find_read_write_call(self) -> None: # pylint: disable=too-many-statements
885885
if isinstance(ir, InternalCall):
886886
self._internal_calls.append(ir)
887887
if isinstance(ir, SolidityCall):
888-
# TODO: consider removing dependancy of solidity_call to internal_call
888+
# TODO: consider removing dependency of solidity_call to internal_call
889889
self._solidity_calls.append(ir)
890890
self._internal_calls.append(ir)
891891
if isinstance(ir, LowLevelCall):

slither/core/declarations/contract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ def get_functions_reading_from_variable(self, variable: "Variable") -> List["Fun
843843

844844
def get_functions_writing_to_variable(self, variable: "Variable") -> List["Function"]:
845845
"""
846-
Return the functions writting the variable
846+
Return the functions writing the variable
847847
"""
848848
return [f for f in self.functions if f.is_writing(variable)]
849849

slither/detectors/compiler_bugs/uninitialized_function_ptr_in_constructor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def _detect(self) -> List[Output]:
122122
node_info: DETECTOR_INFO = [
123123
"\t ",
124124
node,
125-
" is an unintialized function pointer call in a constructor\n",
125+
" is an uninitialized function pointer call in a constructor\n",
126126
]
127127
json = self.generate_result(contract_info + node_info)
128128
results.append(json)

slither/detectors/statements/pyth_unchecked.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PythUnchecked(AbstractDetector):
1313
Documentation: This detector finds deprecated Pyth function calls
1414
"""
1515

16-
# To be overriden in the derived class
16+
# To be overridden in the derived class
1717
PYTH_FUNCTIONS = []
1818
PYTH_FIELD = ""
1919

slither/solc_parsing/expressions/find_variable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def _find_in_contract(
253253
# TODO refactor find_variable to prevent this from happening
254254
pass
255255

256-
# If the enum is refered as its name rather than its canonicalName
256+
# If the enum is referred as its name rather than its canonicalName
257257
enums = {e.name: e for e in contract.enums}
258258
if var_name in enums:
259259
return enums[var_name]

slither/tools/kspec_coverage/analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _get_slither_functions(
7070
and not f.is_constructor_variables
7171
)
7272
]
73-
# Use list(set()) because same state variable instances can be shared accross contracts
73+
# Use list(set()) because same state variable instances can be shared across contracts
7474
# TODO: integrate state variables
7575
all_functions_declared += list(
7676
{s for s in slither.state_variables if s.visibility in ["public", "external"]}

slither/tools/similarity/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def plot(args: argparse.Namespace) -> None: # pylint: disable=too-many-locals
5454
data = []
5555
fs = []
5656

57-
logger.info("Procesing data..")
57+
logger.info("Processing data..")
5858
for (f, c, n), y in cache.items():
5959
if (c == contract or contract is None) and n == fname:
6060
fs.append(f)

tests/e2e/solc_parsing/test_data/yul-solady.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ contract C {
3333
// Snippet of the Initializable contract that was making slither crashes
3434
// https://github.com/Vectorized/solady/blob/9298d096feb87de9a8873a704ff98f6892064c65/src/utils/Initializable.sol#L7
3535
contract Initializable {
36-
bytes32 private constant _INTIALIZED_EVENT_SIGNATURE =
36+
bytes32 private constant _INITIALIZED_EVENT_SIGNATURE =
3737
0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2;
3838
bytes32 private constant _INITIALIZABLE_SLOT =
3939
0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132;
@@ -68,7 +68,7 @@ contract Initializable {
6868
sstore(s, 2)
6969
// Emit the {Initialized} event.
7070
mstore(0x20, 1)
71-
log1(0x20, 0x20, _INTIALIZED_EVENT_SIGNATURE)
71+
log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)
7272
}
7373
}
7474
}

0 commit comments

Comments
 (0)