From 3c2d4d8f3b1af023e27695ff39cdca93c9f718ff Mon Sep 17 00:00:00 2001 From: Christian Ege Date: Wed, 15 May 2024 07:57:10 +0200 Subject: [PATCH] doc(filter): fix the spelling --- doc/filter.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/filter.md b/doc/filter.md index 738559e..f67a1d9 100644 --- a/doc/filter.md +++ b/doc/filter.md @@ -1,10 +1,10 @@ # Using Go text/template for Advanced Data Filtering -This document demonstrates the usage of the Go text/template package to filter and format the output of the `ovp8xx get` command for manipulating the result data. There ar two custom functions created to enhance the filtering: `prefix` and `toJSON`. +This document demonstrates the usage of the Go text/template package to filter and format the output of the `ovp8xx get` command for manipulating the result data. There are two custom functions created to enhance the filtering: `prefix` and `toJSON`. ## The `prefix` Function -The `prefix` function is designed to solve the problem of trailing commas, which are for example not allowed in JSON. The idea is to prefix each line with a comma, except for the very first one. This function is particularly useful when generating JSON output dynamically, where the number of elements may vary. +The `prefix` function is designed to solve the problem of trailing commas, which are, for example, not allowed in JSON. The idea is to prefix each line with a comma, except for the very first one. This function is particularly useful when generating JSON output dynamically, where the number of elements may vary. Here's how it's used in the command: