Skip to content

Commit

Permalink
Update runtime/stdlib/account.go
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent authored Jul 4, 2024
1 parent 24f7c3b commit 7833360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/stdlib/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -3522,7 +3522,7 @@ func canBorrow(
return false
}

// Ensure the wanted borrow type must be a subtype or supertype of the capability borrow type
// Ensure the wanted borrow type is a subtype or supertype of the capability borrow type

return sema.IsSubType(wantedBorrowType.Type, capabilityBorrowType.Type) ||
sema.IsSubType(capabilityBorrowType.Type, wantedBorrowType.Type)
Expand Down

0 comments on commit 7833360

Please sign in to comment.