From 1fc137a2330f2030b140f602eac111f2e024462e Mon Sep 17 00:00:00 2001 From: LinuxHeki Date: Sat, 20 May 2023 15:34:46 +0200 Subject: [PATCH] add math::abs to docs --- README.md | 1 + src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index f58d1d1..62e290e 100644 --- a/README.md +++ b/README.md @@ -375,6 +375,7 @@ This crate offers a set of builtin functions. | `math::sqrt` | 1 | Numeric | Returns the square root of a number. Returns NaN for a negative number | | `math::cbrt` | 1 | Numeric | Returns the cube root of a number | | `math::hypot` | 2 | Numeric | Calculates the length of the hypotenuse of a right-angle triangle given legs of length given by the two arguments | +| `math::abs` | 1 | Numeric | Returns the absolute value of a number | | `str::regex_matches` | 2 | String, String | Returns true if the first argument matches the regex in the second argument (Requires `regex_support` feature flag) | | `str::regex_replace` | 3 | String, String, String | Returns the first argument with all matches of the regex in the second argument replaced by the third argument (Requires `regex_support` feature flag) | | `str::to_lowercase` | 1 | String | Returns the lower-case version of the string | diff --git a/src/lib.rs b/src/lib.rs index cfd5c40..bc0dd29 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -358,6 +358,7 @@ //! | `math::sqrt` | 1 | Numeric | Returns the square root of a number. Returns NaN for a negative number | //! | `math::cbrt` | 1 | Numeric | Returns the cube root of a number | //! | `math::hypot` | 2 | Numeric | Calculates the length of the hypotenuse of a right-angle triangle given legs of length given by the two arguments | +//! | `math::abs` | 1 | Numeric | Returns the absolute value of a number | //! | `str::regex_matches` | 2 | String, String | Returns true if the first argument matches the regex in the second argument (Requires `regex_support` feature flag) | //! | `str::regex_replace` | 3 | String, String, String | Returns the first argument with all matches of the regex in the second argument replaced by the third argument (Requires `regex_support` feature flag) | //! | `str::to_lowercase` | 1 | String | Returns the lower-case version of the string |