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