Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 1a585d2

Browse files
committed
docs/Gopkg.toml.md: fix toml example
Previously the provided Gopkg.toml is not valid. Thanks @liurui-1 for spotting the error. Fixes #2174.
1 parent 23b2e86 commit 1a585d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/Gopkg.toml.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ only in the root project, i.e. the project where `dep` runs. For example, if you
267267

268268
# Example
269269

270-
A sample `Gopkg.toml` with most elements present:
270+
Here's a sample `Gopkg.toml` with most elements present.
271271

272272
```toml
273273
required = ["github.com/user/thing/cmd/thing"]
@@ -294,7 +294,7 @@ codename = "foo"
294294
name = "github.com/user/project"
295295
version = "1.0.0"
296296

297-
[metadata]
297+
[constraint.metadata]
298298
property1 = "value1"
299299
property2 = 10
300300

@@ -307,6 +307,6 @@ codename = "foo"
307307
name = "github.com/x/y"
308308
version = "2.4.0"
309309

310-
[metadata]
310+
[override.metadata]
311311
propertyX = "valueX"
312312
```

0 commit comments

Comments
 (0)