diff --git a/docs/how-to/hip_runtime_api/error_handling.rst b/docs/how-to/hip_runtime_api/error_handling.rst index fd4e5aa38a..4c7b977728 100644 --- a/docs/how-to/hip_runtime_api/error_handling.rst +++ b/docs/how-to/hip_runtime_api/error_handling.rst @@ -173,7 +173,7 @@ A complete example demonstrating error handling: int main() { constexpr int N = 100; - float *device_pointer; + float *device_pointer; // Allocate memory on the device HIP_CHECK(hipMalloc(&device_pointer, N * sizeof(float);));