diff --git a/doc/src/manual/interfaces.md b/doc/src/manual/interfaces.md index a8306ae4f4c34..5ba7cdf4fb62b 100644 --- a/doc/src/manual/interfaces.md +++ b/doc/src/manual/interfaces.md @@ -50,7 +50,7 @@ is translated into: ```julia next = iterate(iter) -while next !== nothing +while !isnothing(next) (i, state) = next # body next = iterate(iter, state)