Skip to content

Commit c2939a3

Browse files
committed
fix: tutorial for dependencies
Fixes #126
1 parent 61c3aef commit c2939a3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pages/tutorial/dependencies.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The *test-drive* package is added in the *dev-dependencies* table as shown below
7878
:language: toml
7979
:caption: fpm.toml
8080
:lines: 1-10
81-
:emphasize-lines: 8-10
81+
:emphasize-lines: 7-9
8282
```
8383

8484
:::{note}
@@ -112,7 +112,7 @@ This can be used for adding a command line interface package, which is only used
112112
```{literalinclude} ../../src/tutorial/dependencies/fpm.toml
113113
:language: toml
114114
:caption: fpm.toml
115-
:emphasize-lines: 14-15
115+
:emphasize-lines: 13-14
116116
```
117117

118118
We restructure our main program a bit for using [M\_CLI2] to handle the command line input.
@@ -130,7 +130,7 @@ Our final main program looks like
130130
Again we run a quick check using fpm
131131

132132
```{code-block} text
133-
:emphasize-lines: 2, 14
133+
:emphasize-lines: 2, 13
134134
❯ fpm run -- demo substitute fpm.toml
135135
name = "substitute"
136136
version = "0.1.0"

src/tutorial/dependencies/fpm.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name = "demo"
22
version = "0.1.0"
33

44
[dependencies]
5-
stdlib.git = "https://github.com/fortran-lang/stdlib"
6-
stdlib.branch = "stdlib-fpm"
5+
stdlib = "*"
76

87
[dev-dependencies]
98
test-drive.git = "https://github.com/fortran-lang/test-drive"

0 commit comments

Comments
 (0)