diff --git a/.gitignore b/.gitignore index bbcd8cc..6f0eb8e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /target /.idea **/.DS_Store -Cargo.lock \ No newline at end of file +Cargo.lock +/.vscode \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index d964b3d..c764681 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "finquant" -version = "0.0.55" +version = "0.0.56" authors = ["Jeremy Wang ", "David Steiner "] license = "MIT OR Apache-2.0" description = "Experimental Rust Quant Library" diff --git a/src/derivatives/interestrate/swap.rs b/src/derivatives/interestrate/swap.rs index ca118ec..a71629d 100644 --- a/src/derivatives/interestrate/swap.rs +++ b/src/derivatives/interestrate/swap.rs @@ -102,7 +102,7 @@ impl InterestRateSwapLeg { ) } - pub fn is_fixe_leg(&self) -> bool { + pub fn is_fixed_leg(&self) -> bool { match self.swap_type { InterestRateSwapLegType::Fixed { coupon: _ } => true, InterestRateSwapLegType::Float { spread: _ } => false,