> ## Documentation Index
> Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
> Use this file to discover all available pages before exploring further.

# core::cmp::max

Takes two comparable values `a` and `b` and returns
the greater of the two values.

## Signature

```rust theme={null}
pub fn max, +Drop, +Copy>(a: T, b: T) -> T
```

## Examples

```rust theme={null}
use core::cmp::max;

assert!(max(0, 1) == 1);
```
