From 0d86b86d208e181d45c72aa40bc94024bedbb75d Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Tue, 26 Sep 2023 16:12:10 -0400 Subject: [PATCH] Fix misspellings Signed-off-by: Bryan Gurney --- doc/usage.rst | 2 +- src/justbases/_division.py | 4 ++-- tests/test_deterministic/test_radix.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/usage.rst b/doc/usage.rst index 32ad614..33d93bb 100644 --- a/doc/usage.rst +++ b/doc/usage.rst @@ -75,7 +75,7 @@ Note that this is conversion of natural numbers, so all int values are non-negative. Invoking convert_from_int() on a negative integer raises an exception. -It is also possible to peform an add operation of a single digit to +It is also possible to perform an add operation of a single digit to a number in any base. :: >>> Nats.carry_in([1, 1], 1, 2) diff --git a/src/justbases/_division.py b/src/justbases/_division.py index bf5f27c..8652485 100644 --- a/src/justbases/_division.py +++ b/src/justbases/_division.py @@ -137,7 +137,7 @@ def _fractional_division( :param precision: maximum number of fractional digits :type precision: int or NoneType :param method: rounding method - :type method: element of RoundignMethods.METHODS + :type method: element of RoundingMethods.METHODS :returns: carry-out digit, non_repeating and repeating parts :rtype: tuple of int * list of int * list of int * int @@ -199,7 +199,7 @@ def division( :param precision: maximum number of fractional digits :type precision: int or NoneType :param method: rounding method - :type method: element of RoundignMethods.METHODS + :type method: element of RoundingMethods.METHODS :returns: the result :rtype: tuple of list of int * list of int * list of int * int :raises ConvertError: on invalid values diff --git a/tests/test_deterministic/test_radix.py b/tests/test_deterministic/test_radix.py index ea8beea..8e22c64 100644 --- a/tests/test_deterministic/test_radix.py +++ b/tests/test_deterministic/test_radix.py @@ -71,7 +71,7 @@ def test_in_equality(self): def test_operator_exceptions(self): """ - Test that comparsion operators yield exceptions. + Test that comparison operators yield exceptions. """ radix1 = Radix(0, [], [], [], 3) radix2 = Radix(0, [], [], [], 2)