Skip to content

Commit cfd7f48

Browse files
authored
rm doc reference to non-existent diagm keyword arg (#35913)
* rm doc reference to non-existent diagm keyword arg * fix diagm too
1 parent a383d61 commit cfd7f48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/LinearAlgebra/src/dense.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ diagm_container(size, kv::Pair{<:Integer,<:BitVector}...) =
311311
diagm(m::Integer, n::Integer, v::AbstractVector)
312312
313313
Construct a matrix with elements of the vector as diagonal elements.
314-
By default (if `size=nothing`), the matrix is square and its size is given by
314+
By default, the matrix is square and its size is given by
315315
`length(v)`, but a non-square size `m`×`n` can be specified
316316
by passing `m,n` as the first arguments.
317317

stdlib/SparseArrays/src/sparsematrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3469,7 +3469,7 @@ end
34693469
34703470
Construct a sparse diagonal matrix from `Pair`s of vectors and diagonals.
34713471
Each vector `kv.second` will be placed on the `kv.first` diagonal. By
3472-
default (if `size=nothing`), the matrix is square and its size is inferred
3472+
default, the matrix is square and its size is inferred
34733473
from `kv`, but a non-square size `m`×`n` (padded with zeros as needed)
34743474
can be specified by passing `m,n` as the first arguments.
34753475

0 commit comments

Comments
 (0)