Skip to content

Commit 45856c4

Browse files
committed
Fixed styling + fixed bug with docstring
1 parent 5ac7dbc commit 45856c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pydatastructs/linear_data_structures/_backend/cpp/arrays/OneDimensionalImplicitArray.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,4 @@ static PyTypeObject OneDimensionalImplicitArrayType = {
161161
/* tp_new */ OneDimensionalImplicitArray___new__,
162162
};
163163

164-
#endif
164+
#endif

pydatastructs/linear_data_structures/arrays.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,9 @@ class OneDimensionalImplicitArray(ImplicitArray):
524524
>>> from pydatastructs import OneDimensionalImplicitArray
525525
>>> arr = OneDimensionalImplicitArray(int, lambda i: i+1, 5)
526526
>>> arr[0]
527-
6
527+
1
528528
>>> arr[1]
529-
7
529+
2
530530
531531
References
532532
==========
@@ -567,7 +567,7 @@ def __new__(cls, dtype=NoneType, *args, **kwargs):
567567
else:
568568
raise TypeError("Expected type of function is function "
569569
"and expected type of size is int")
570-
570+
571571
return obj
572572

573573
def __getitem__(self, i):
@@ -581,4 +581,4 @@ def __len__(self):
581581

582582
@property
583583
def _data(self):
584-
return [self._function(i) for i in range(self._size)]
584+
return [self._function(i) for i in range(self._size)]

0 commit comments

Comments
 (0)