Skip to content

Commit f27af24

Browse files
authored
Fix duplicated words in documentation comments (#2773)
2 parents 38baab9 + 80e1497 commit f27af24

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

ql/cashflows/digitalcmscoupon.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
namespace QuantLib {
3434

35-
//! Cms-rate coupon with digital digital call/put option
35+
//! Cms-rate coupon with digital call/put option
3636
class DigitalCmsCoupon : public DigitalCoupon {
3737
public:
3838
DigitalCmsCoupon(

ql/cashflows/digitalcoupon.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ namespace QuantLib {
148148
//@{
149149
//!
150150
ext::shared_ptr<FloatingRateCoupon> underlying_;
151-
//! strike rate for the the call option
151+
//! strike rate for the call option
152152
Rate callStrike_;
153-
//! strike rate for the the put option
153+
//! strike rate for the put option
154154
Rate putStrike_;
155155
//! multiplicative factor of call payoff
156156
Real callCsi_ = 0.;

ql/cashflows/digitaliborcoupon.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
namespace QuantLib {
3434

35-
//! Ibor rate coupon with digital digital call/put option
35+
//! Ibor rate coupon with digital call/put option
3636
class DigitalIborCoupon : public DigitalCoupon {
3737
public:
3838
DigitalIborCoupon(

ql/experimental/coupons/digitalcmsspreadcoupon.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
namespace QuantLib {
3232

33-
//! Cms-spread-rate coupon with digital digital call/put option
33+
//! Cms-spread-rate coupon with digital call/put option
3434
class DigitalCmsSpreadCoupon : public DigitalCoupon {
3535
public:
3636
explicit DigitalCmsSpreadCoupon(

ql/experimental/inflation/yoycapfloortermpricesurface.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ namespace QuantLib {
493493
atmYoYSwapDateRates_.first.push_back(referenceDate()+cfMaturities_[i]);
494494
atmYoYSwapTimeRates_.first.push_back(timeFromReference(referenceDate()+cfMaturities_[i]));
495495
// atmYoYSwapRates_->second.push_back(interpol((*cfMaturities_)[i]));
496-
// Heuristic: overwrite the the swap rate with a value that guarantees that the
496+
// Heuristic: overwrite the swap rate with a value that guarantees that the
497497
// intrinsic value of all options is lower than the price
498498
Real newSwapRate = minSwapRateIntersection[i] + intrinsicValueAddOn;
499499
if (newSwapRate > maxSwapRateIntersection[i])

ql/models/marketmodels/models/alphafinder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ Real AlphaFinder::computeLinearPart(Real alpha) {
354354
Real bilimit = alpha0;
355355

356356
if (bottomValue > targetVariance && topValue > targetVariance) {
357-
// see if if ok at some intermediate point by stepping through
357+
// see if ok at some intermediate point by stepping through
358358
Integer i=1;
359359
while ( i < steps && topValue> targetVariance) {
360360
topAlpha = alpha0 + (alphaMax-alpha0)*(i+0.0)/(steps+0.0);
@@ -367,7 +367,7 @@ Real AlphaFinder::computeLinearPart(Real alpha) {
367367
}
368368

369369
if (bottomValue > targetVariance && topValue > targetVariance) {
370-
// see if if ok at some intermediate point by stepping through
370+
// see if ok at some intermediate point by stepping through
371371
Integer i=1;
372372
while ( i < steps && topValue> targetVariance) {
373373
bottomAlpha = alpha0 + (alphaMin-alpha0)*(i+0.0)/(steps+0.0);

0 commit comments

Comments
 (0)