Skip to content

Commit

Permalink
doc: update cbrt() doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
korbexmachina committed Mar 26, 2024
1 parent 09c0dcd commit d58a6c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gcalc.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ fn pow10_iter(n: Float, accumulator: Float) -> Float {
// Cube Root Functions --------------------------------------------------------

/// Returns a result containing the cube root of the argument
///
/// Note: This function only supports non-negative values
pub fn cbrt(n: Float) -> Result(Float, MathError) {
case n <. 0.0 {
True -> Error(ValueOutOfRange)
Expand Down

0 comments on commit d58a6c6

Please sign in to comment.