From 55ed50c860b9ba5c8eea5ef35da92a352e5a4f0b Mon Sep 17 00:00:00 2001 From: Quentin Fiard Date: Thu, 16 Mar 2023 13:24:03 +0100 Subject: [PATCH] Fix a few typos in the C API tutorial (#8926) --- doc/tutorials/c_api_tutorial.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorials/c_api_tutorial.rst b/doc/tutorials/c_api_tutorial.rst index ca121e1d2..090743a0f 100644 --- a/doc/tutorials/c_api_tutorial.rst +++ b/doc/tutorials/c_api_tutorial.rst @@ -134,7 +134,7 @@ c. Assertion technique: It works both in C/ C++. If expression evaluates to 0 (f // do something with booster //free the memory - XGBoosterFree(booster) + XGBoosterFree(booster); 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 BoosterHandle booster; - XGBoosterSetParam(booster, "paramter_name", "0.1"); + XGBoosterSetParam(booster, "parameter_name", "0.1"); **************************************************************