From 0fdaf418ebc9c192cc6082421010ee4f51634643 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Wed, 20 Mar 2024 18:53:28 +0100 Subject: [PATCH] Fix error message "Length of count" Fixes #191 --- src/NetCDF.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetCDF.jl b/src/NetCDF.jl index a557123..562b840 100644 --- a/src/NetCDF.jl +++ b/src/NetCDF.jl @@ -341,7 +341,7 @@ function readvar!( Base.iscontiguous(retvalsa) || error("Can only read into contiguous pieces of memory") length(start) == v.ndim || error("Length of start ($(length(start))) must equal the number of variable dimensions ($(v.ndim))") - length(count) == v.ndim || error("Length of start ($(length(count))) must equal the number of variable dimensions ($(v.ndim))") + length(count) == v.ndim || error("Length of count ($(length(count))) must equal the number of variable dimensions ($(v.ndim))") p = preparestartcount(start, count, v)