0

From the link, It seems format! can work in Substrate runtime.

let hello_world = sp_std::fmt::format!("Hello,{}","world");

I want to have a variable hello_world and use it for latter。

But I always get an error : could not find format in fmt

I have searched for a long time, I also refs: how to use format! in no_std

I have been confused for several days.

The link is not correct? Are there some stories behind this?

gfan
  • 1,027
  • 1
  • 14
  • 28

0 Answers0