Skip to content

Commit 0175f1c

Browse files
pedrocarloLeMikaelF
andcommitted
Update core/types.rs
Co-authored-by: Mikaël Francoeur <mikael.francoeur@hotmail.com>
1 parent ad03447 commit 0175f1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,8 @@ pub struct ExternalAggState {
484484
/// format!("{}", value);
485485
/// ---BAD---
486486
/// match value {
487-
/// Value::from_i64(i) => *i.as_str(),
488-
/// Value::from_f64(f) => *f.as_str(),
487+
/// Value::Numeric(Numeric::Integer(i)) => i.to_string(),
488+
/// Value::Numeric(Numeric::Float(f)) => f64::from(*f).to_string(),
489489
/// ....
490490
/// }
491491
impl Display for Value {

0 commit comments

Comments
 (0)