From 9784313adf027ce99a17efbd554accc0971733f4 Mon Sep 17 00:00:00 2001 From: Neville Dipale Date: Mon, 4 Mar 2019 21:25:50 +0200 Subject: [PATCH] fix doc comment --- rust/arrow/src/compute/cast_kernels.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/arrow/src/compute/cast_kernels.rs b/rust/arrow/src/compute/cast_kernels.rs index 62940b5729b73..ec261bfa2fdff 100644 --- a/rust/arrow/src/compute/cast_kernels.rs +++ b/rust/arrow/src/compute/cast_kernels.rs @@ -427,7 +427,8 @@ where /// Cast Boolean types to numeric /// -/// Any zero value returns `false` while non-zero returns `true` +/// `false` returns 0 while `true` returns 1. Although this cast supports floats, they are +/// unsupported in the upstream cast fn cast_bool_to_numeric(from: &BooleanArray) -> Result> where T: ArrowPrimitiveType + ArrowNumericType,