Skip to content

Commit a43d327

Browse files
fix: spelling of indicies :P
Co-authored-by: Prajwal S N <[email protected]> Signed-off-by: Swarnim Arun <[email protected]>
1 parent 79283f7 commit a43d327

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pydracula/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl Lang {
4545
}
4646

4747
#[pyfunction]
48-
fn get_meaningful_line_indicies(lang: Lang, src: &str) -> Vec<usize> {
48+
fn get_meaningful_line_indices(lang: Lang, src: &str) -> Vec<usize> {
4949
lang.get_meaningful_line_indices(src)
5050
}
5151

@@ -62,7 +62,7 @@ fn get_count_of_meaningful_lines(lang: Lang, src: &str) -> usize {
6262
/// the python module definition
6363
#[pymodule]
6464
fn pydracula(_py: Python<'_>, m: &types::PyModule) -> PyResult<()> {
65-
m.add_function(wrap_pyfunction!(get_meaningful_line_indicies, m)?)?;
65+
m.add_function(wrap_pyfunction!(get_meaningful_line_indices, m)?)?;
6666
m.add_function(wrap_pyfunction!(get_cleaned_source_code, m)?)?;
6767
m.add_function(wrap_pyfunction!(get_count_of_meaningful_lines, m)?)?;
6868
m.add_class::<Lang>()?;

pydracula/tests/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from pydracula import Lang, get_meaningful_line_indicies
1+
from pydracula import Lang, get_meaningful_line_indices
22

3-
indicies = get_meaningful_line_indicies(
3+
indices = get_meaningful_line_indices(
44
Lang.C,
55
"""
66
int xyz() {

0 commit comments

Comments
 (0)