> ## Documentation Index
> Fetch the complete documentation index at: https://starkware-9575960b-agent-options.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# core::gas::redeposit_gas

Returns unused gas into the gas builtin.
Useful for cases where different branches take different amounts of gas, but gas withdrawal is
the same for both.

## Signature

```rust
pub extern fn redeposit_gas() implicits(GasBuiltin) nopanic;
```
