Skip to content

Commit 2c527ee

Browse files
committed
Fix documentation bug
1 parent 0730fac commit 2c527ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ We can now use Mimi to construct a model that binds the ``grosseconomy`` and ``e
7777
```julia
7878
my_model = Model()
7979

80-
setindex(my_model, :time, [2015:5:2110])
80+
setindex(my_model, :time, collect(2015:5:2110))
8181

8282
addcomponent(my_model, grosseconomy) #Order matters here. If the emissions component were defined first, the model would not run.
8383
addcomponent(my_model, emissions)
@@ -230,7 +230,7 @@ function run_my_model()
230230

231231
my_model = Model()
232232

233-
setindex(my_model, :time, [2015:5:2110])
233+
setindex(my_model, :time, collect(2015:5:2110))
234234
setindex(my_model, :regions, ["Region1", "Region2", "Region3"]) #Note that the regions of your model must be specified here
235235

236236
addcomponent(my_model, grosseconomy)

0 commit comments

Comments
 (0)