Skip to content

Commit

Permalink
Merge pull request #159 from robertchristensen/docs/fix-warnings
Browse files Browse the repository at this point in the history
fix warning in docs generation
  • Loading branch information
avhz committed Nov 26, 2023
2 parents fe0f276 + 217503f commit c7def1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/curves/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub trait Curve {
fn rate(&self, date: OffsetDateTime) -> f64;

/// Returns the discount factor for the given date.
/// This is a convenience function that calls [rate] to get the rate for
/// This is a convenience function that calls [`rate`](Curve::rate) to get the rate for
/// the given date, and then calculates the discount factor using the
/// formula:
/// $$
Expand All @@ -96,7 +96,7 @@ pub trait Curve {
}

/// Returns multiple discount factors for the given dates.
/// This is a convenience function that calls [discount_factor] for each
/// This is a convenience function that calls [`discount_factor`](Curve::discount_factor) for each
/// date.
fn discount_factors(&self, dates: &[OffsetDateTime]) -> Vec<f64> {
dates
Expand Down
4 changes: 2 additions & 2 deletions src/portfolio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

//! A portfolio is a collection of [`Position`]s, which are simply a combination
//! of an [`Instrument`](crate::instruments::Instrument), a quantity, a purchase price, and a current price.
//! You may also specify the [`Currency`](crate::money::Currency) of the instrument.
//! of an [`Instrument`], a quantity, a purchase price, and a current price.
//! You may also specify the [`Currency`] of the instrument.
//!
//! # Example
//!
Expand Down

0 comments on commit c7def1d

Please sign in to comment.