APETYPE/practice
rust·passage intermediate
Desktop Required to Type
Desktop Recommended for Code Typing
ApeType code transcription is engineered for physical mechanical and laptop keyboards with syntax navigation. Mobile on-screen keyboards cannot provide authentic typing cadence.
You can see the leaderboard hereTop Typists
view all1/ 7
1
pub fn parse_port(input: &str) -> Result<u16, String> {↵
2
match input.trim().parse::<u16>() {↵
3
Ok(port) if port > 1024 => Ok(port),↵
4
Ok(_) => Err("Port must be unprivileged (> 1024)".to_string()),↵
5
Err(e) => Err(format!("Invalid port integer: {}", e)),↵
6
}↵
7
}
tab+enter- restart
esc- restart