From 0271739d9fc7c172b592d941036a46c07ff8727c Mon Sep 17 00:00:00 2001 From: imaqtkatt Date: Tue, 12 Mar 2024 12:43:13 -0300 Subject: [PATCH] Fix typo --- src/hvmc_net/mutual_recursion.rs | 2 +- tests/snapshots/mutual_recursion__a_b_c.hvm.snap | 2 +- tests/snapshots/mutual_recursion__multiple.hvm.snap | 2 +- tests/snapshots/mutual_recursion__odd_even.hvm.snap | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hvmc_net/mutual_recursion.rs b/src/hvmc_net/mutual_recursion.rs index 276c117c3..2500ab1e3 100644 --- a/src/hvmc_net/mutual_recursion.rs +++ b/src/hvmc_net/mutual_recursion.rs @@ -18,7 +18,7 @@ pub fn check_cycles(book: &Book) -> Result<(), String> { } else { Err(format!( "{}\n{}\n{}\n{}", - "Mutual recursion cycle detected in compiled funcions:", + "Mutual recursion cycle detected in compiled functions:", pretty_print_cycles(&cycles), "This program will expand infinitely in strict evaluation mode.", "Read https://github.com/HigherOrderCO/hvm-lang/blob/main/docs/lazy-definitions.md for more information." diff --git a/tests/snapshots/mutual_recursion__a_b_c.hvm.snap b/tests/snapshots/mutual_recursion__a_b_c.hvm.snap index 73ac6869c..667d58b47 100644 --- a/tests/snapshots/mutual_recursion__a_b_c.hvm.snap +++ b/tests/snapshots/mutual_recursion__a_b_c.hvm.snap @@ -2,7 +2,7 @@ source: tests/golden_tests.rs input_file: tests/golden_tests/mutual_recursion/a_b_c.hvm --- -Mutual recursion cycle detected in compiled funcions: +Mutual recursion cycle detected in compiled functions: Cycle 1: A -> B -> C This program will expand infinitely in strict evaluation mode. Read https://github.com/HigherOrderCO/hvm-lang/blob/main/docs/lazy-definitions.md for more information. diff --git a/tests/snapshots/mutual_recursion__multiple.hvm.snap b/tests/snapshots/mutual_recursion__multiple.hvm.snap index b85d00ec7..467f5a5fa 100644 --- a/tests/snapshots/mutual_recursion__multiple.hvm.snap +++ b/tests/snapshots/mutual_recursion__multiple.hvm.snap @@ -2,7 +2,7 @@ source: tests/golden_tests.rs input_file: tests/golden_tests/mutual_recursion/multiple.hvm --- -Mutual recursion cycle detected in compiled funcions: +Mutual recursion cycle detected in compiled functions: Cycle 1: A -> B -> C Cycle 2: H -> I Cycle 3: M -> N diff --git a/tests/snapshots/mutual_recursion__odd_even.hvm.snap b/tests/snapshots/mutual_recursion__odd_even.hvm.snap index 0c9f181ae..9351fbb93 100644 --- a/tests/snapshots/mutual_recursion__odd_even.hvm.snap +++ b/tests/snapshots/mutual_recursion__odd_even.hvm.snap @@ -2,7 +2,7 @@ source: tests/golden_tests.rs input_file: tests/golden_tests/mutual_recursion/odd_even.hvm --- -Mutual recursion cycle detected in compiled funcions: +Mutual recursion cycle detected in compiled functions: Cycle 1: isEven -> isOdd This program will expand infinitely in strict evaluation mode. Read https://github.com/HigherOrderCO/hvm-lang/blob/main/docs/lazy-definitions.md for more information.