Skip to content

Commit

Permalink
Update parameter types and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MRHMisu committed Sep 27, 2024
1 parent 9fb6d06 commit 8c9eb70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/human_eval_082.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ use vstd::prelude::*;

verus! {

spec fn is_divisible(n: int, divisor: int) -> bool {
pub open spec fn is_divisible(n: int, divisor: int) -> bool {
(n % divisor) == 0
}

fn prime_length(str: &Vec<char>) -> (result: bool)
// Implementation following the ground-truth
// This function determines if a given string length is prime or not
fn prime_length(str: &[char]) -> (result: bool)
ensures
result == if str.len() < 2 {
false
Expand Down

0 comments on commit 8c9eb70

Please sign in to comment.