> ## Documentation Index
> Fetch the complete documentation index at: https://starkware-9575960b-starkzapv4.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 theme={null}
pub extern fn redeposit_gas() implicits(GasBuiltin) nopanic;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.