Skip to content

Commit

Permalink
tweaked comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmckinna committed Dec 14, 2023
1 parent e5006e3 commit 9838568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Digit.agda
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ toNatDigits base@(suc (suc _)) n = aux (<-wellFounded-fast n) []
aux : {n : ℕ} Acc _<_ n List ℕ List ℕ
aux {zero} _ xs = (0 ∷ xs)
aux {n@(suc _)} (acc wf) xs with does (0 <? n / base)
... | false = (n % base) ∷ xs -- n here is already sufficient?
... | false = (n % base) ∷ xs -- Could this more simply be n ∷ xs here?
... | true = aux (wf (m/n<m n base sz<ss)) ((n % base) ∷ xs)

------------------------------------------------------------------------
Expand Down

0 comments on commit 9838568

Please sign in to comment.