diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-18 16:21:19 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-18 16:21:19 -0400 |
| commit | 0974d632c3dda7874f01c58bfc342b73cd1634a4 (patch) | |
| tree | 67fecbca860bb6156ba403d55315fa71eae11436 /docs/integers.md | |
| parent | 171d80ac1e5bd006c2c600f36a42440dfb635605 (diff) | |
Fix docs
Diffstat (limited to 'docs/integers.md')
| -rw-r--r-- | docs/integers.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/integers.md b/docs/integers.md index 1ee47cbd..b37f93ab 100644 --- a/docs/integers.md +++ b/docs/integers.md @@ -134,7 +134,7 @@ can be called either on the type itself: `Int.sqrt(x)` or as a method call: - [`func octal(i: Int, digits: Int = 0, prefix: Bool = yes -> Text)`](#octal) - [`func onward(first: Int, step: Int = 1 -> Text)`](#onward) - [`func parse(text: Text -> Int?)`](#parse) -- [`func prev_prime(x: Int -> Int)`](#prev_prime) +- [`func prev_prime(x: Int -> Int?)`](#prev_prime) - [`func sqrt(x: Int -> Int)`](#sqrt) - [`func to(first: Int, last: Int, step : Int? = none -> func(->Int?))`](#to) @@ -442,13 +442,13 @@ See [the GNU MP docs](https://gmplib.org/manual/Number-Theoretic-Functions#index for more details. ```tomo -func prev_prime(x: Int -> Int) +func prev_prime(x: Int -> Int?) ``` - `x`: The integer before which to find the previous prime. **Returns:** -The previous prime number less than `x`. +The previous prime number less than `x`, or `none` if `x` is less than 2. **Example:** ```tomo |
