Skip to content

docs: fix exponential doc examples to match return type#919

Merged
lpil merged 1 commit into
gleam-lang:mainfrom
scott-ray-wilson:docs/fix-float-exponential-examples
Apr 25, 2026
Merged

docs: fix exponential doc examples to match return type#919
lpil merged 1 commit into
gleam-lang:mainfrom
scott-ray-wilson:docs/fix-float-exponential-examples

Conversation

@scott-ray-wilson
Copy link
Copy Markdown
Contributor

The documentation comment for float.exponential has mismatched signature and examples. The signature declares a return type of Float, but the example assertions wrap results in Ok(...) as if it returned a Result. This PR removes the incorrect Ok wrappings.

Copy link
Copy Markdown
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@lpil lpil merged commit 5d78021 into gleam-lang:main Apr 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants