Fix a few typos in the C API tutorial (#8926)

This commit is contained in:
Quentin Fiard 2023-03-16 13:24:03 +01:00 committed by GitHub
parent a093770f36
commit 55ed50c860
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ c. Assertion technique: It works both in C/ C++. If expression evaluates to 0 (f
// do something with booster // do something with booster
//free the memory //free the memory
XGBoosterFree(booster) XGBoosterFree(booster);
DMatrixHandle DMatrixHandle_param; DMatrixHandle DMatrixHandle_param;
@ -156,7 +156,7 @@ c. Assertion technique: It works both in C/ C++. If expression evaluates to 0 (f
.. code-block:: c .. code-block:: c
BoosterHandle booster; BoosterHandle booster;
XGBoosterSetParam(booster, "paramter_name", "0.1"); XGBoosterSetParam(booster, "parameter_name", "0.1");
************************************************************** **************************************************************