Skip to content

Commit 0965909

Browse files
authored
Fix typos in IndexedVarArray example (#27)
Co-authored-by: Lars Hellemo <[email protected]>
1 parent 5269ddd commit 0965909

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ Use IndexedVarArrays to check for valid indices and to warn against duplicate
7070
indices, as well as improved performance:
7171

7272
```julia
73-
w = IndexedVarArray(m, "w", (car=cars, year=years))
73+
w = IndexedVarArray(m, "w", (car=cars, year=year))
7474
m[:w] = w
7575

76-
for c in cars, y in years
77-
insertvar!(m, c, y)
76+
for c in cars, y in year
77+
insertvar!(w, c, y)
7878
end
7979
```
8080

0 commit comments

Comments
 (0)