File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,12 @@ pub fn parse(string: String) -> Result(Float, Nil)
6363@ external ( javascript , "../gleam_stdlib.mjs" , "float_to_string" )
6464pub fn to_string ( x : Float ) -> String
6565
66- /// Restricts a `Float` between two bounds.
66+ /// Restricts a float between two bounds.
67+ ///
68+ /// Note: If the `min` argument is larger than the `max` argument then they
69+ /// will be swapped, so the minimum bound is always lower than the maximum
70+ /// bound.
71+ ///
6772///
6873/// ## Examples
6974///
Original file line number Diff line number Diff line change @@ -281,6 +281,10 @@ pub fn to_float(x: Int) -> Float
281281
282282/// Restricts an int between two bounds.
283283///
284+ /// Note: If the `min` argument is larger than the `max` argument then they
285+ /// will be swapped, so the minimum bound is always lower than the maximum
286+ /// bound.
287+ ///
284288/// ## Examples
285289///
286290/// ```gleam
You can’t perform that action at this time.
0 commit comments