From 5b53293e84b7832d64b52f6d2b23ce18168df610 Mon Sep 17 00:00:00 2001 From: Dan Date: Sat, 11 Nov 2023 07:51:13 +0000 Subject: [PATCH] chore: Correction to numerous spellings (#33) --- src/core/moving_average.rs | 2 +- src/indicators/ichimoku_cloud.rs | 4 ++-- src/indicators/know_sure_thing.rs | 2 +- src/indicators/pivot_reversal_strategy.rs | 2 +- src/indicators/price_channel_strategy.rs | 2 +- src/methods/integral.rs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/moving_average.rs b/src/core/moving_average.rs index d6c247a..525e55b 100644 --- a/src/core/moving_average.rs +++ b/src/core/moving_average.rs @@ -36,7 +36,7 @@ pub trait MovingAverageConstructor: Clone + FromStr { /// Returns moving average type fn ma_type(&self) -> Self::Type; - /// Checks two moving average constructors for the same moving averagee type + /// Checks two moving average constructors for the same moving average type fn is_similar_to(&self, other: &Self) -> bool { self.ma_type() == other.ma_type() } diff --git a/src/indicators/ichimoku_cloud.rs b/src/indicators/ichimoku_cloud.rs index 66f09f3..233a748 100644 --- a/src/indicators/ichimoku_cloud.rs +++ b/src/indicators/ichimoku_cloud.rs @@ -22,12 +22,12 @@ use crate::methods::{Cross, Highest, Lowest}; /// /// # 2 signals /// -/// * When `Tenkan Sen` crosses `Kijun Sen` upwards and `source` value is greter than both `Senkou Span A and B` and when `Senkou Span A` is greter than `Senkou Span B`, +/// * When `Tenkan Sen` crosses `Kijun Sen` upwards and `source` value is greater than both `Senkou Span A and B` and when `Senkou Span A` is greater than `Senkou Span B`, /// returns full buy signal. /// When `Tenkan Sen` crosses `Kijun Sen` downwards and `source` value is lower than both `Senkou Span A and B` and when `Senkou Span A` is lower than `Senkou Span B`, /// returns full sell signal. /// -/// * When `source` value crosses `Kijun Sen` upwards and `source` value is greter than both `Senkou Span A and B` and when `Senkou Span A` is greter than `Senkou Span B`, +/// * When `source` value crosses `Kijun Sen` upwards and `source` value is greater than both `Senkou Span A and B` and when `Senkou Span A` is greater than `Senkou Span B`, /// returns full buy signal. /// When `source` value crosses `Kijun Sen` downwards and `source` value is lower than both `Senkou Span A and B` and when `Senkou Span A` is lower than `Senkou Span B`, /// returns full sell signal. diff --git a/src/indicators/know_sure_thing.rs b/src/indicators/know_sure_thing.rs index bc6e813..b32118b 100644 --- a/src/indicators/know_sure_thing.rs +++ b/src/indicators/know_sure_thing.rs @@ -18,7 +18,7 @@ use crate::methods::{Cross, RateOfChange}; /// /// Range in \(`-inf`; `+inf`\) /// -/// * `Sinal line` value +/// * `Signal line` value /// /// Range in \(`-inf`; `+inf`\) /// diff --git a/src/indicators/pivot_reversal_strategy.rs b/src/indicators/pivot_reversal_strategy.rs index 1d9d27a..9095264 100644 --- a/src/indicators/pivot_reversal_strategy.rs +++ b/src/indicators/pivot_reversal_strategy.rs @@ -9,7 +9,7 @@ use super::HLC; /// Pivot Reversal Strategy /// -/// Simply seaches for pivot points and returns signal. +/// Simply searches for pivot points and returns signal. /// /// ## Links /// diff --git a/src/indicators/price_channel_strategy.rs b/src/indicators/price_channel_strategy.rs index a49946c..39729b9 100644 --- a/src/indicators/price_channel_strategy.rs +++ b/src/indicators/price_channel_strategy.rs @@ -7,7 +7,7 @@ use crate::methods::{Highest, Lowest}; /// Price Channel Strategy /// -/// Calculates price channel by highes high and lowest low for last `period` candles. +/// Calculates price channel by highest high and lowest low for last `period` candles. /// /// ## Links /// diff --git a/src/methods/integral.rs b/src/methods/integral.rs index b04a27f..1520aba 100644 --- a/src/methods/integral.rs +++ b/src/methods/integral.rs @@ -51,7 +51,7 @@ use serde::{Deserialize, Serialize}; /// assert_eq!(integral.next(&5.0), 15.0); // 1 + 2 + 3 + 4 + 5 /// ``` /// -/// ### Intergal is opposite method for Derivative +/// ### Integral is opposite method for Derivative /// ``` /// use yata::prelude::*; /// use yata::methods::{Integral, Derivative};