How to remove first and last character of a string in Rust?

前端 未结 0 431
青春惊慌失措
青春惊慌失措 2021-01-31 14:10

I\'m wondering how I can remove the first and last character of a string in Rust.

Example:

Input:

"Hello World"

Output:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题