summaryrefslogtreecommitdiff
path: root/stdlib/float.mli
diff options
context:
space:
mode:
authorMichael‮ ‬Schmidt <github@mschmidt.me>2022-08-12 22:35:17 +0200
committerGitHub <noreply@github.com>2022-08-12 22:35:17 +0200
commita448f48d85cc30e773eed3d0e5c2277bab0442a5 (patch)
treeb229f3800fc85ef04300b2f9da52fe5049dac296 /stdlib/float.mli
parent929d404d0a85d91ef7faf2efe5150e2973b209d7 (diff)
downloadocaml-a448f48d85cc30e773eed3d0e5c2277bab0442a5.tar.gz
Fix typo in documentation
`+.` is needed since it operates of floats
Diffstat (limited to 'stdlib/float.mli')
-rw-r--r--stdlib/float.mli2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/float.mli b/stdlib/float.mli
index 5616b55fdd..4daeffd9bd 100644
--- a/stdlib/float.mli
+++ b/stdlib/float.mli
@@ -294,7 +294,7 @@ external atan2 : float -> float -> float = "caml_atan2_float" "atan2"
external hypot : float -> float -> float = "caml_hypot_float" "caml_hypot"
[@@unboxed] [@@noalloc]
-(** [hypot x y] returns [sqrt(x *. x + y *. y)], that is, the length
+(** [hypot x y] returns [sqrt(x *. x +. y *. y)], that is, the length
of the hypotenuse of a right-angled triangle with sides of length
[x] and [y], or, equivalently, the distance of the point [(x,y)]
to origin. If one of [x] or [y] is infinite, returns [infinity]