Skip to content

Commit 8b3abe7

Browse files
committed
add return doc for bisect
1 parent 0cf5dc2 commit 8b3abe7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

contracts/FlowTransactionScheduler.cdc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,10 @@ access(all) contract FlowTransactionScheduler {
460460
self.timestamps = []
461461
}
462462

463-
// bisect is a function that finds the index to insert a new timestamp in the sorted array.
464-
// taken from bisect_right in pthon https://stackoverflow.com/questions/2945017/javas-equivalent-to-bisect-in-python
463+
/// bisect is a function that finds the index to insert a new timestamp in the sorted array.
464+
/// taken from bisect_right in pthon https://stackoverflow.com/questions/2945017/javas-equivalent-to-bisect-in-python
465+
/// @param new: The new timestamp to insert
466+
/// @return: The index to insert the new timestamp at or nil if the timestamp is already in the array
465467
access(all) fun bisect(new: UFix64): Int? {
466468
var high = self.timestamps.length
467469
var low = 0

0 commit comments

Comments
 (0)