Fix typos in c_api.cpp (#983)
Fix typos in c_api.cpp (#983)

* Bounds checking of used_row_indices (#959)

* add Common::check_int32_elements_interval_closed function.

* insert a bounds checking code in LGBM_DatasetGetSubset function of C API.

* Delete a needless function

* delete the function check_int32_elements_interval_closed

* Fix typos

Laurae2/LightGBM,microsoft/LightGBM,wxchan/LightGBM,microsoft/LightGBM,wxchan/LightGBM,Allardvm/LightGBM,Allardvm/LightGBM,Allardvm/LightGBM,microsoft/LightGBM,microsoft/LightGBM,Allardvm/LightGBM,henry0312/LightGBM,wxchan/LightGBM,wxchan/LightGBM,Allardvm/LightGBM,henry0312/LightGBM,Laurae2/LightGBM,henry0312/LightGBM,microsoft/LightGBM,wxchan/LightGBM,Laurae2/LightGBM,henry0312/LightGBM,Laurae2/LightGBM,henry0312/LightGBM,Laurae2/LightGBM