Skip to content

Commit

Permalink
[R-package] fix grammar in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes authored Apr 22, 2021
1 parent 887ef4c commit 13d0cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R-package/R/lgb.Dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Dataset <- R6::R6Class(
cnames <- colnames(private$raw_data)
}

# set feature names if not exist
# set feature names if they do not exist
if (is.null(private$colnames) && !is.null(cnames)) {
private$colnames <- as.character(cnames)
}
Expand All @@ -140,7 +140,7 @@ Dataset <- R6::R6Class(

cate_indices <- as.list(match(private$categorical_feature, private$colnames) - 1L)

# Provided indices, but some indices are not existing?
# Provided indices, but some indices are missing?
if (sum(is.na(cate_indices)) > 0L) {
stop(
"lgb.self.get.handle: supplied an unknown feature in categorical_feature: "
Expand Down

0 comments on commit 13d0cee

Please sign in to comment.