Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StudyRust/leetcode_rust
/ main
Function
main
821-shortest-distance-to-a-character.rs:19–23 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
}
18
19
fn main() {
20
let s =
"loveleetcode"
.to_string();
21
let c =
'e'
;
22
println!(
"{:?}"
, shortest_to_char(s, c));
23
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected