Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix doctest in local_generic_element.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
roed314 committed Aug 4, 2017
1 parent a826978 commit 883e6b5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/sage/rings/padics/local_generic_element.pyx
Expand Up @@ -430,13 +430,10 @@ cdef class LocalGenericElement(CommutativeRingElement):
sage: R(3).add_bigoh(5)
3 + O(3^4)
However, a negative value for ``absprec`` leads to an error, since
there is no fraction field for fixed-mod elements::
A negative value for ``absprec`` returns an element in the fraction field::
sage: R(3).add_bigoh(-1)
Traceback (most recent call last):
...
ValueError: absprec must be at least 0
sage: R(3).add_bigoh(-1).parent()
3-adic Field with floating precision 4
TESTS:
Expand Down

0 comments on commit 883e6b5

Please sign in to comment.