Skip to content

Commit 106ff94

Browse files
jishnubclaude
andauthored
Fix typos in comments and docstrings (#691)
* Fix typos in comments and docstrings Comment-only changes, except for the signature line in the docstring for `Integral()`, which read `Intergral()`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Fix beyound in the resize error messages These are user-visible strings, and the same message in src/Caching/ragged.jl already spells it correctly. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent d463d76 commit 106ff94

34 files changed

Lines changed: 55 additions & 55 deletions

src/Caching/bandedblockbanded.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ end
1414
#
1515
function resizedata!(B::CachedOperator{T,<:BandedBlockBandedMatrix{T}}, ::Colon, col::Integer) where {T<:Number}
1616
if col > size(B,2)
17-
throw(ArgumentError("Cannot resize beyound size of operator"))
17+
throw(ArgumentError("Cannot resize beyond size of operator"))
1818
end
1919

2020
if col > B.datasize[2]

src/Caching/blockbanded.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ end
1818
# that is, trace an operator down the diagonal. What blocks correspond to the
1919
# block diagonal?
2020
# this is used to determine how many blocks to pad in the QR decomposition, as
21-
# every lower block gets added to the upper daigonal
21+
# every lower block gets added to the upper diagonal
2222

2323
diagblockshift(a,b) = error("Developer: Not implemented for blocklengths $a, $b")
2424

@@ -88,7 +88,7 @@ end
8888
#
8989
function resizedata!(B::CachedOperator{T,BlockBandedMatrix{T}},::Colon,col::Integer) where {T<:Number}
9090
if col > size(B,2)
91-
throw(ArgumentError("Cannot resize beyound size of operator"))
91+
throw(ArgumentError("Cannot resize beyond size of operator"))
9292
end
9393

9494
if col > B.datasize[2]

src/Caching/matrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CachedOperator(::Type{Matrix},op::Operator;padding::Bool=false) =
66

77
function resizedata!(B::CachedOperator{T,Matrix{T}},n::Integer,m::Integer) where T<:Number
88
if n > size(B,1) || m > size(B,2)
9-
throw(ArgumentError("Cannot resize beyound size of operator"))
9+
throw(ArgumentError("Cannot resize beyond size of operator"))
1010
end
1111

1212
# this does nothing if already in dimensions

src/Caching/ragged.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function resizedata!(B::CachedOperator{T,RaggedMatrix{T}},::Colon,n::Integer) wh
1313
resize!(B.data.cols,n+1)
1414

1515
if B.padding
16-
# K is largest colstop. We get previous largest by looking at precalulated
16+
# K is largest colstop. We get previous largest by looking at precalculated
1717
# cols
1818
K = B.datasize[2]==0 ? 0 : B.data.cols[B.datasize[2]+1]-B.data.cols[B.datasize[2]]
1919

src/Domain.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ domainscompatible(a,b) = domainscompatible(domain(a),domain(b))
6565
_isapprox(a, b) = isapprox(a,b)
6666
function _isapprox(a::Interval, b::Interval)
6767
# hacky compat for DomainSets v0.6,
68-
# where comparing open and closed intevals throws an error
68+
# where comparing open and closed intervals throws an error
6969
# However, we don't need to compare at all if the endpoints differ
7070
# this introduces a duplicate check, but that's probably ok
7171
isapprox(leftendpoint(a), leftendpoint(b), atol=100eps(prectype(a))) &&
@@ -90,7 +90,7 @@ function indomain(x,d::SegmentDomain)
9090
y=tocanonical(d,x)
9191
ry=real(y)
9292
iy=imag(y)
93-
sc=norm(fromcanonicalD(d,ry<-1 ? -one(ry) : (ry>1 ? one(ry) : ry))) # scale based on stretch of map on projection to interal
93+
sc=norm(fromcanonicalD(d,ry<-1 ? -one(ry) : (ry>1 ? one(ry) : ry))) # scale based on stretch of map on projection to interval
9494
dy=fromcanonical(d,y)
9595
# TODO: use isapprox once keywords are fast
9696
((isinf(norm(dy)) && isinf(norm(x))) || norm(dy-x) 1000eps(T)*max(norm(x),1)) &&
@@ -101,7 +101,7 @@ end
101101
issubcomponent(a::Domain,b::Domain) = a in components(b)
102102

103103

104-
##### canoncial
104+
##### canonical
105105
"""
106106
tocanonical(d, x)
107107
@@ -120,7 +120,7 @@ function tocanonical end
120120

121121
const 𝑪 = tocanonical
122122

123-
## conveninece routines
123+
## convenience routines
124124

125125
ones(d::Domain) = ones(prectype(d),Space(d))
126126
zeros(d::Domain) = zeros(prectype(d),Space(d))
@@ -179,7 +179,7 @@ invfromcanonicalD(d::Domain,x...) = 1/fromcanonicalD(d,x...)
179179

180180

181181
## sorting
182-
# we sort spaces lexigraphically by default
182+
# we sort spaces lexicographically by default
183183

184184
for OP in (:<,:(<=),:(isless))
185185
@eval $OP(a::Domain,b::Domain)=$OP(string(a),string(b))

src/Domains/Domains.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end
3636

3737

3838

39-
# multivariate domainxs
39+
# multivariate domains
4040

4141
include("multivariate.jl")
4242

src/Fun.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ iszero(f::Fun) = all(iszero, coefficients(f)) || all(iszero, values(f))
778778
# Deliberately not named isconst or isconstant to avoid conflicts with Base or DomainSets
779779
isconstantfun(f::Fun) = iszero(f - first(f))
780780

781-
# sum, integrate, and idfferentiate are in CalculusOperator
781+
# sum, integrate, and differentiate are in CalculusOperator
782782

783783
"""
784784
reverseorientation(f::Fun)
@@ -827,11 +827,11 @@ end
827827
# exp.( [x,x]) is equivalent to [exp(x),exp(x)]
828828
#
829829
# does not throw the same error. When array values are mixed with arrays, the Array
830-
# takes presidence:
830+
# takes precedence:
831831
#
832832
# exp.([x;x] .+ [x,x]) is equivalent to exp.(Array([x;x]) .+ [x,x])
833833
#
834-
# This presidence is picked by the `promote_containertype` overrides.
834+
# This precedence is picked by the `promote_containertype` overrides.
835835

836836
struct FunStyle <: BroadcastStyle end
837837

src/LinearAlgebra/RaggedMatrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct RaggedMatrix{T} <: AbstractMatrix{T}
1111
cols::Vector{Int} # a Vector specifying the first index of each column
1212
m::Int #Number of rows
1313
function RaggedMatrix{T}(data::Vector{T}, cols::Vector{Int}, m::Int) where T
14-
# make sure the cols are monitonically increasing
14+
# make sure the cols are monotonically increasing
1515
@assert 1==cols[1]
1616
for j=1:length(cols)-1
1717
@assert cols[j] cols[j+1]

src/LinearAlgebra/rowvector.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ to_vec(x) = x
6464
# expects to operate within the transposed domain, so to_vec transposes the elements
6565
@inline map(f, rowvecs::RowVector...) = RowVector(map(f, to_vecs(rowvecs...)...))
6666

67-
# broacast (other combinations default to higher-dimensional array)
67+
# broadcast (other combinations default to higher-dimensional array)
6868
@inline broadcast(f, rowvecs::Union{Number,RowVector}...) =
6969
RowVector(broadcast(f, to_vecs(rowvecs...)...))
7070

src/Multivariate/ProductFun.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function canonicalevaluate(f::ProductFun{S,V,SS,T},x::Number,::Colon) where {S,V
306306
end
307307
canonicalevaluate(f::ProductFun,x::Number,y::Number) = canonicalevaluate(f,x,:)(y)
308308
canonicalevaluate(f::ProductFun{S,V,SS},x::Colon,y::Number) where {S,V,SS<:TensorSpace} =
309-
evaluate(transpose(f),y,:) # doesn't make sense For general product fon without specifying space
309+
evaluate(transpose(f),y,:) # doesn't make sense For general product fun without specifying space
310310

311311
canonicalevaluate(f::ProductFun,xx::AbstractVector,yy::AbstractVector) =
312312
transpose(hcat([evaluate(f,x,:)(yy) for x in xx]...))

0 commit comments

Comments
 (0)