以下代码无法编译:
let x = "hello" in
Printf.printf x
错误是:
Error: This expression has type string but an expression was expected of type
('a, out_channel, unit) format =
('a, out_channel, unit, unit, unit, unit) format6
1)有人可以解释错误信息吗?
2)为什么不能将字符串传递给 printf ?