mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Merge branch 'master' into more-encompassing-number-skips
This commit is contained in:
14
samples/OCaml/common.ml
Normal file
14
samples/OCaml/common.ml
Normal file
@@ -0,0 +1,14 @@
|
||||
(*
|
||||
* Copyright (c) 2013 Jeremy Yallop.
|
||||
*
|
||||
* This file is distributed under the terms of the MIT License.
|
||||
* See the file LICENSE for details.
|
||||
*)
|
||||
|
||||
let string_of format v =
|
||||
let buf = Buffer.create 100 in
|
||||
let fmt = Format.formatter_of_buffer buf in begin
|
||||
format fmt v;
|
||||
Format.pp_print_flush fmt ();
|
||||
Buffer.contents buf
|
||||
end
|
||||
Reference in New Issue
Block a user