aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modelica_model.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modelica_model.rs b/src/modelica_model.rs
index 1231546..785b8ae 100644
--- a/src/modelica_model.rs
+++ b/src/modelica_model.rs
@@ -170,7 +170,7 @@ impl ModelicaModelExt for ModelicaModel {
}
// Recurses through 'original', replacing all instances of 'a' with 'b'
-fn substitute_with(original: &Expr, a: &Expr, b: &Expr) -> Expr {
+pub fn substitute_with(original: &Expr, a: &Expr, b: &Expr) -> Expr {
use modelica_parser::Expr::*;
println!("original: {:?} replacing: {:?} with: {:?}", original, a, b);
if *original == *a {