From c2e18b251dacfea30be79bf1fec2c40cf4ab97ee Mon Sep 17 00:00:00 2001 From: Jason Novinger Date: Thu, 1 Jun 2017 15:14:31 -0500 Subject: [PATCH 1/2] Minor docs fix Properly indent `Fields.Mappers.Max` field in example JSON. --- docs/tutorials.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials.md b/docs/tutorials.md index dc120fdd6..dc31b8db9 100644 --- a/docs/tutorials.md +++ b/docs/tutorials.md @@ -99,7 +99,7 @@ These same objects are represented in the JSON definition file: { "Name": "lfm0", "Min": -0.5, - "Max": 3600.5, + "Max": 3600.5, "Res": 3600 }, ], From ed8bf2ecac3f78b26b2f5fa404f36e40e8d6b665 Mon Sep 17 00:00:00 2001 From: Travis Date: Thu, 1 Jun 2017 15:52:56 -0500 Subject: [PATCH 2/2] ensure that the sample JSON definition file is proper JSON --- docs/tutorials.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/tutorials.md b/docs/tutorials.md index dc31b8db9..350aa3849 100644 --- a/docs/tutorials.md +++ b/docs/tutorials.md @@ -92,27 +92,27 @@ pdk.BitMapper{ These same objects are represented in the JSON definition file: ```go { - "Fields": [ - "Trip_distance": 10, - ] -"Mappers": [ + "Fields": { + "Trip_distance": 10 + }, + "Mappers": [ { "Name": "lfm0", "Min": -0.5, "Max": 3600.5, "Res": 3600 - }, + } ], "BitMappers": [ { "Frame": "dist_miles", "Mapper": { "Name": "lfm0" - }, + }, "Parsers": [ {"Name": "FloatParser"} ], - "Fields": "Trip_distance", + "Fields": "Trip_distance" } ] }