From 1a585d20a8aaf86905583dc3869bef3e38922e16 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Thu, 13 Jun 2019 08:45:53 -0700 Subject: [PATCH] docs/Gopkg.toml.md: fix toml example Previously the provided Gopkg.toml is not valid. Thanks @liurui-1 for spotting the error. Fixes #2174. --- docs/Gopkg.toml.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Gopkg.toml.md b/docs/Gopkg.toml.md index 13d8d26b36..4c8863c3ee 100644 --- a/docs/Gopkg.toml.md +++ b/docs/Gopkg.toml.md @@ -267,7 +267,7 @@ only in the root project, i.e. the project where `dep` runs. For example, if you # Example -A sample `Gopkg.toml` with most elements present: +Here's a sample `Gopkg.toml` with most elements present. ```toml required = ["github.com/user/thing/cmd/thing"] @@ -294,7 +294,7 @@ codename = "foo" name = "github.com/user/project" version = "1.0.0" - [metadata] + [constraint.metadata] property1 = "value1" property2 = 10 @@ -307,6 +307,6 @@ codename = "foo" name = "github.com/x/y" version = "2.4.0" - [metadata] + [override.metadata] propertyX = "valueX" ```