Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
  • Loading branch information
i9e1 and devmotion authored Jul 2, 2023
1 parent 01acb8c commit cb044e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/univariate/discrete/dirac.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ cf(d::Dirac, t) = cis(t * d.value)
#### Affine transformation
Base.:+(d::Dirac, c::Real) = Dirac(d.value + c)
Base.:+(a::Dirac, b::Dirac) = Dirac(a.value + b.value)
Base.:*(c::Real, d::Dirac) = error("Rescaling of Dirac is prohibited.")
Base.:*(c::Real, d::Dirac) = Dirac(c * d.value)

#### Sampling

Expand Down

0 comments on commit cb044e1

Please sign in to comment.