Skip to content

Commit

Permalink
Fix error message "Length of count" (#192)
Browse files Browse the repository at this point in the history
Fixes #191
  • Loading branch information
visr authored Mar 26, 2024
1 parent 41dcc7c commit 32a4e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetCDF.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 32a4e34

Please sign in to comment.