Skip to content

Commit

Permalink
add comment for const arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenad committed Jun 25, 2024
1 parent c3d492b commit a717e74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exercises/practice/roman-numerals/.meta/example.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ pub struct Roman {
#[generate_trait]
impl RomanImpl of RomanTrait {
fn from_u32(num: u32) -> Roman {
// it will soon be possible to use constant array variables
// for now we have to define them within the function
let mut ROMAN_MAP: Array<(u32, ByteArray)> = array![
(1000, "M"),
(900, "CM"),
Expand Down

0 comments on commit a717e74

Please sign in to comment.