Update documentation of `InputWeightPrediction`

The doc was written before alternative constructors existed, update it.
This commit is contained in:
Martin Habovstiak 2023-05-04 20:23:10 +02:00
parent 6fec1789b9
commit 6cec19f6d3
1 changed files with 2 additions and 1 deletions

View File

@ -1329,7 +1329,8 @@ pub const fn predict_weight_from_slices(
/// Weight prediction of an individual input.
///
/// This helper type collects information about an input to be used in [`predict_weight`] function.
/// It can only be created using the [`new`](InputWeightPrediction::new) function.
/// It can only be created using the [`new`](InputWeightPrediction::new) function or using other
/// associated constants/methods.
#[derive(Copy, Clone, Debug)]
pub struct InputWeightPrediction {
script_size: usize,