@@ -172,11 +172,11 @@ let isOk: result<'a, 'b> => bool
172172let isError : result <'a , 'b > => bool
173173
174174/**
175- `equal(res1, res2, fOk, fError )`: Determine if two `Result` variables are equal with
175+ `equal(res1, res2, eqOk, eqError )`: Determine if two `Result` variables are equal with
176176respect to equality functions. If `res1` and `res2` are of the form `Ok(n)`
177- and `Ok(m)`, return the result of `fOk (n, m)`. If one of `res1` and `res2` are of
177+ and `Ok(m)`, return the result of `eqOk (n, m)`. If one of `res1` and `res2` are of
178178the form `Error(e)`, return false If both `res1` and `res2` are of the form
179- `Error(e)`, return the result of `fError (e1, e2)`.
179+ `Error(e)`, return the result of `eqError (e1, e2)`.
180180
181181## Examples
182182
@@ -203,16 +203,16 @@ Result.equal(bad1, bad2, mod10equal, String.equal) == false
203203let equal : (result <'a , 'c >, result <'b , 'd >, ('a , 'b ) => bool , ('c , 'd ) => bool ) => bool
204204
205205/**
206- `compare(res1, res2, fOk, fError )`: Compare two `Result` variables with respect to a
206+ `compare(res1, res2, cmpOk, cmpError )`: Compare two `Result` variables with respect to a
207207comparison function. The comparison function returns -1. if the first variable
208208is "less than" the second, 0. if the two variables are equal, and 1. if the first
209209is "greater than" the second.
210210
211211If `res1` and `res2` are of the form `Ok(n)` and `Ok(m)`, return the result of
212- `fOk (n, m)`. If `res1` is of the form `Error(e)` and `res2` of the form `Ok(n)`,
212+ `cmpOk (n, m)`. If `res1` is of the form `Error(e)` and `res2` of the form `Ok(n)`,
213213return -1. (nothing is less than something) If `res1` is of the form `Ok(n)` and
214214`res2` is of the form `Error(e)`, return 1. (something is greater than nothing) If
215- both `res1` and `res2` are of the form `Error(e)`, return fError (e1, e2).
215+ both `res1` and `res2` are of the form `Error(e)`, return cmpError (e1, e2).
216216
217217## Examples
218218
0 commit comments