From 80f36d20eb34e225bd8fc0536293e53aa0cd40cf Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Mon, 26 Oct 2015 10:01:34 +0100 Subject: [PATCH] doc; test --- src/core/CCString.mli | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/CCString.mli b/src/core/CCString.mli index a05cf845..393010e4 100644 --- a/src/core/CCString.mli +++ b/src/core/CCString.mli @@ -66,6 +66,7 @@ module type S = sig val pp : Buffer.t -> t -> unit val print : Format.formatter -> t -> unit + (** Print the string within quotes *) end (** {2 Strings} *) @@ -380,4 +381,9 @@ module Sub : sig Sub.make "abcde" 1 3 |> Sub.copy = "bcd" Sub.full "abcde" |> Sub.copy = "abcde" *) + + (*$T + let sub = Sub.make " abc " 1 ~len:3 in \ + "\"abc\"" = (CCFormat.to_string Sub.print sub) + *) end