Skip to content

Commit 254eb62

Browse files
committed
Update wording
1 parent aa62b88 commit 254eb62

17 files changed

+22
-22
lines changed

src/Fraction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ that it will always be returned by a call to the constructor when the same
823823
base ring $R$ is supplied.
824824
"""
825825
function fraction_field(R::Ring; cached::Bool=true)
826-
@req !is_trivial(R) "The zero is currently not supported as a coefficient ring."
826+
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
827827
return Generic.fraction_field(R; cached=cached)
828828
end
829829

src/FreeAssociativeAlgebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ function free_associative_algebra(
270270
s::Vector{Symbol};
271271
cached::Bool = true,
272272
)
273-
@req !is_trivial(R) "The zero is currently not supported as a coefficient ring."
273+
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
274274
parent_obj = Generic.FreeAssociativeAlgebra{elem_type(R)}(R, s, cached)
275275
return (parent_obj, gens(parent_obj))
276276
end

src/LaurentPoly.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ julia> rand(R, -3:3, -9:9)
4040
```
4141
"""
4242
function laurent_polynomial_ring(R::Ring, s::VarName; cached::Bool = true)
43-
@req !is_trivial(R) "The zero is currently not supported as a coefficient ring."
43+
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
4444
return Generic.laurent_polynomial_ring(R, Symbol(s); cached)
4545
end

src/LaurentSeries.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ precision in future will return the same parent object and generator. If
2525
caching of the parent object is not required, `cached` can be set to `false`.
2626
"""
2727
function laurent_series_ring(R::Ring, prec::Int, s::VarName; cached::Bool=true)
28-
@req !is_trivial(R) "The zero is currently not supported as a coefficient ring."
28+
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
2929
return Generic.laurent_series_ring(R, prec, Symbol(s); cached)
3030
end
3131

src/MPoly.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,6 @@ Like [`polynomial_ring(R::Ring, s::Vector{Symbol})`](@ref) but return only the
15091509
multivariate polynomial ring.
15101510
"""
15111511
function polynomial_ring_only(R::T, s::Vector{Symbol}; internal_ordering::Symbol=:lex, cached::Bool=true) where T<:Ring
1512-
@req !is_trivial(R) "The zero is currently not supported as a coefficient ring."
1512+
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
15131513
return mpoly_ring_type(T)(R, s, internal_ordering, cached)
15141514
end

src/MatRing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,6 @@ Return parent object corresponding to the ring of $n\times n$ matrices over
441441
the ring $R$.
442442
"""
443443
function matrix_ring(R::NCRing, n::Int)
444-
@req !is_trivial(R) "The zero is currently not supported as a base ring."
444+
@req !is_trivial(R) "Zero rings are currently not supported as base ring."
445445
return Generic.matrix_ring(R, n)
446446
end

src/Matrix.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6633,7 +6633,7 @@ randmat_with_rank(S::MatSpace{T}, rank::Int, v...) where {T <: RingElement} =
66336633
Constructs the matrix over $R$ with entries as in `arr`.
66346634
"""
66356635
function matrix(R::NCRing, arr::AbstractMatrix{T}) where {T}
6636-
@req !is_trivial(R) "The zero is currently not supported as a base ring."
6636+
@req !is_trivial(R) "Zero rings are currently not supported as base ring."
66376637
if elem_type(R) === T && all(e -> parent(e) === R, arr)
66386638
z = Generic.MatSpaceElem{elem_type(R)}(R, arr)
66396639
return z
@@ -6644,7 +6644,7 @@ function matrix(R::NCRing, arr::AbstractMatrix{T}) where {T}
66446644
end
66456645

66466646
function matrix(R::NCRing, arr::MatElem)
6647-
@req !is_trivial(R) "The zero is currently not supported as a base ring."
6647+
@req !is_trivial(R) "Zero rings are currently not supported as base ring."
66486648
return map_entries(R, arr)
66496649
end
66506650

@@ -6683,7 +6683,7 @@ Constructs the $r \times c$ matrix over $R$, where the entries are taken
66836683
row-wise from `arr`.
66846684
"""
66856685
function matrix(R::NCRing, r::Int, c::Int, arr::AbstractVecOrMat{T}) where T
6686-
@req !is_trivial(R) "The zero is currently not supported as a base ring."
6686+
@req !is_trivial(R) "Zero rings are currently not supported as base ring."
66876687
_check_dim(r, c, arr)
66886688
ndims(arr) == 2 && return matrix(R, arr)
66896689
if elem_type(R) === T && all(e -> parent(e) === R, arr)
@@ -7065,7 +7065,7 @@ the ring $R$.
70657065
function matrix_space(R::NCRing, r::Int, c::Int; cached::Bool = true)
70667066
# TODO: the 'cached' argument is ignored and mainly here for backwards compatibility
70677067
# (and perhaps future compatibility, in case we need it again)
7068-
@req !is_trivial(R) "The zero is currently not supported as a base ring."
7068+
@req !is_trivial(R) "Zero rings are currently not supported as base ring."
70697069
(r < 0 || c < 0) && error("Dimensions must be non-negative")
70707070
T = elem_type(R)
70717071
return MatSpace{T}(R, r, c)

src/NCPoly.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ Like [`polynomial_ring(R::NCRing, s::Symbol)`](@ref) but return only the
765765
polynomial ring.
766766
"""
767767
function polynomial_ring_only(R::T, s::Symbol; cached::Bool=true) where T<:NCRing
768-
@req !is_trivial(R) "The zero is currently not supported as a coefficient ring."
768+
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
769769
return dense_poly_ring_type(T)(R, s, cached)
770770
end
771771

src/PuiseuxSeries.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ precision in future will return the same parent object and generator. If
2525
caching of the parent object is not required, `cached` can be set to `false`.
2626
"""
2727
function puiseux_series_ring(R::Ring, prec::Int, s::VarName; cached::Bool=true)
28-
@req !is_trivial(R) "The zero is currently not supported as a coefficient ring."
28+
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
2929
return Generic.PuiseuxSeriesRing(R, prec, Symbol(s); cached)
3030
end
3131

src/RelSeries.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ precision in future will return the same parent object and generator. If
14741474
caching of the parent object is not required, `cached` can be set to `false`.
14751475
"""
14761476
function power_series_ring(R::Ring, prec::Int, s::VarName; cached::Bool=true, model::Symbol=:capped_relative)
1477-
@req !is_trivial(R) "The zero is currently not supported as a coefficient ring."
1477+
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
14781478
return Generic.power_series_ring(R, prec, Symbol(s); cached, model)
14791479
end
14801480

0 commit comments

Comments
 (0)