The analyzer has detected the use of an outer loop counter in the inner loop initializer, which may indicate a logical error.
In a simple form, this error looks as follows:
var i, j int
for i = 0; i < M; i++ {
for i = 0; j < N; j++ {
a[i][j] = 0
}
}
The fixed code:
var i, j int
for i = 0; i < M; i++ {
for j = 0; j < N; j++ {
a[i][j] = 0
}
}
This diagnostic is classified as:
Was this page helpful?
Your message has been sent. We will email you at
If you do not see the email in your inbox, please check if it is filtered to one of the following folders:
Take
a chance!