MCPcopy Create free account
hub / github.com/bytehunt/rustycli / max

Function max

examples/buzz.rs:1–7  ·  view source on GitHub ↗
(a: i32, b: i32)

Source from the content-addressed store, hash-verified

1pub fn max(a: i32, b: i32) -> i32 {
2 if a > b {
3 a
4 } else {
5 b
6 }
7}
8
9#[cfg(test)]
10mod tests {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected