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 <tim.gates@iress.com>
This commit is contained in:
Tim Gates 2022-07-20 23:04:50 +10:00 committed by GitHub
parent 703261e78f
commit cb40bbdadd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,7 +178,7 @@ class PartitionBuilder {
* \tparam Pred Predicate for whether a row should be partitioned to the left node. * \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 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 range The range of input row index.
* \param fidx Feature index. * \param fidx Feature index.
* \param p_row_set_collection Pointer to rows that are being partitioned. * \param p_row_set_collection Pointer to rows that are being partitioned.