From cb40bbdadd44db3e49dba3d34dc1ff76c3107760 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Wed, 20 Jul 2022 23:04:50 +1000 Subject: [PATCH] docs: fix simple typo, cannonical -> canonical (#8099) There is a small typo in src/common/partition_builder.h. Should read `canonical` rather than `cannonical`. Signed-off-by: Tim Gates --- src/common/partition_builder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/partition_builder.h b/src/common/partition_builder.h index 9ab696a96..b19dd0ae7 100644 --- a/src/common/partition_builder.h +++ b/src/common/partition_builder.h @@ -178,7 +178,7 @@ class PartitionBuilder { * \tparam Pred Predicate for whether a row should be partitioned to the left node. * * \param node_in_set The index of node in current batch of nodes. - * \param nid The cannonical node index (node index in the tree). + * \param nid The canonical node index (node index in the tree). * \param range The range of input row index. * \param fidx Feature index. * \param p_row_set_collection Pointer to rows that are being partitioned.