> ## Documentation Index
> Fetch the complete documentation index at: https://starkware-9575960b-chore-starknet-docs-url-migration.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;
```
