You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hint number (6) says create rows with_capacity(width). Shouldn't that be ideally with_capacity(height) since we want to create height number of rows and passing height is much better?
In listing 2.12 Rendering the Mandlebrot set,
code/ch2/ch2-mandelbrot/src/main.rs
Line 14 in 39e24d7
hint number (6) says create rows
with_capacity(width)
. Shouldn't that be ideallywith_capacity(height)
since we want to createheight
number of rows and passingheight
is much better?Also few line below:
code/ch2/ch2-mandelbrot/src/main.rs
Line 17 in 39e24d7
let mut row: Vec<usize> =
should also haveVec::with_capacity(width)
instead ofVec::with_capacity(height)
The text was updated successfully, but these errors were encountered: