Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
deltamarnix committed Dec 19, 2023
1 parent 7849788 commit d986edf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function help(x::AbstractString)::Cint
return 1
end

function main(ARGS::Vector{AbstractString})::Cint
function main(ARGS::Vector{String})::Cint
n = length(ARGS)
if n != 1
return help("Exactly 1 argument expected, got $n")
Expand Down
8 changes: 4 additions & 4 deletions docs/python/examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
" \"julia\",\n",
" \"--project=../../core\",\n",
" \"--eval\",\n",
" f'using Ribasim; Ribasim.run(\"{datadir.as_posix()}/basic_transient/ribasim.toml\")',\n",
" f'using Ribasim; Ribasim.main([\"{datadir.as_posix()}/basic_transient/ribasim.toml\"])',\n",
" ],\n",
" check=True,\n",
")"
Expand Down Expand Up @@ -968,7 +968,7 @@
" \"julia\",\n",
" \"--project=../../core\",\n",
" \"--eval\",\n",
" f'using Ribasim; Ribasim.run(\"{datadir.as_posix()}/level_setpoint_with_minmax/ribasim.toml\")',\n",
" f'using Ribasim; Ribasim.main([\"{datadir.as_posix()}/level_setpoint_with_minmax/ribasim.toml\"])',\n",
" ],\n",
" check=True,\n",
")"
Expand Down Expand Up @@ -1390,7 +1390,7 @@
" \"julia\",\n",
" \"--project=../../core\",\n",
" \"--eval\",\n",
" f'using Ribasim; Ribasim.run(\"{datadir.as_posix()}/pid_control/ribasim.toml\")',\n",
" f'using Ribasim; Ribasim.main([\"{datadir.as_posix()}/pid_control/ribasim.toml\"])',\n",
" ],\n",
" check=True,\n",
")"
Expand Down Expand Up @@ -1849,7 +1849,7 @@
" \"julia\",\n",
" \"--project=../../core\",\n",
" \"--eval\",\n",
" f'using Ribasim; Ribasim.run(\"{datadir.as_posix()}/allocation_example/ribasim.toml\")',\n",
" f'using Ribasim; Ribasim.main([\"{datadir.as_posix()}/allocation_example/ribasim.toml\"])',\n",
" ],\n",
" check=True,\n",
")"
Expand Down

0 comments on commit d986edf

Please sign in to comment.