From 3cbaeb92db0fffbbc251e6bf7ca6e34b790f6ad8 Mon Sep 17 00:00:00 2001 From: Michael Lan Date: Thu, 15 Jun 2023 15:18:47 -0700 Subject: [PATCH] doc: fix typo --- src/core/CCList.mli | 2 +- src/core/CCListLabels.mli | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/CCList.mli b/src/core/CCList.mli index b626b362..7030fac4 100644 --- a/src/core/CCList.mli +++ b/src/core/CCList.mli @@ -391,7 +391,7 @@ val drop : int -> 'a t -> 'a t (** [drop n l] drops the [n] first elements of the list [l], keep the rest. *) val hd_tl : 'a t -> 'a * 'a t -(** [hd_tl (x :: l)] returns [hd, l]. +(** [hd_tl (x :: l)] returns [x, l]. @raise Failure if the list is empty. @since 0.16 *) diff --git a/src/core/CCListLabels.mli b/src/core/CCListLabels.mli index eaf238fb..c0f99696 100644 --- a/src/core/CCListLabels.mli +++ b/src/core/CCListLabels.mli @@ -411,7 +411,7 @@ val drop : int -> 'a t -> 'a t (** [drop n l] drops the [n] first elements of the list [l], keep the rest. *) val hd_tl : 'a t -> 'a * 'a t -(** [hd_tl (x :: l)] returns [hd, l]. +(** [hd_tl (x :: l)] returns [x, l]. @raise Failure if the list is empty. @since 0.16 *)