From 86f87f26ba4ab92a4fd5a1f79b3aa7e0c3bfa688 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Wed, 19 Aug 2020 12:43:57 -0600 Subject: [PATCH] fixed typos --- content/influxdb/v2.0/query-data/get-started/query-influxdb.md | 2 +- content/influxdb/v2.0/query-data/get-started/syntax-basics.md | 2 +- .../influxdb/v2.0/reference/flux/stdlib/built-in/outputs/to.md | 2 +- .../v2.0/reference/flux/stdlib/built-in/transformations/map.md | 2 +- .../v2.0/reference/flux/stdlib/contrib/discord/endpoint.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/content/influxdb/v2.0/query-data/get-started/query-influxdb.md b/content/influxdb/v2.0/query-data/get-started/query-influxdb.md index 427c12208..3aa82a494 100644 --- a/content/influxdb/v2.0/query-data/get-started/query-influxdb.md +++ b/content/influxdb/v2.0/query-data/get-started/query-influxdb.md @@ -79,7 +79,7 @@ The `filter()` function has one parameter, `fn`, which expects an anonymous func with logic that filters data based on columns or attributes. Flux's anonymous function syntax is similar to Javascript's. -Records or rows are passed into the `filter()` function as an record (`r`). +Records or rows are passed into the `filter()` function as a record (`r`). The anonymous function takes the record and evaluates it to see if it matches the defined filters. Use the `and` relational operator to chain multiple filters. diff --git a/content/influxdb/v2.0/query-data/get-started/syntax-basics.md b/content/influxdb/v2.0/query-data/get-started/syntax-basics.md index e116d1386..6c0209f3f 100644 --- a/content/influxdb/v2.0/query-data/get-started/syntax-basics.md +++ b/content/influxdb/v2.0/query-data/get-started/syntax-basics.md @@ -60,7 +60,7 @@ this is a string ``` ### Records -Flux also supports records. Each value in an record can be a different data type. +Flux also supports records. Each value in a record can be a different data type. ```js > o = {name:"Jim", age: 42, "favorite color": "red"} diff --git a/content/influxdb/v2.0/reference/flux/stdlib/built-in/outputs/to.md b/content/influxdb/v2.0/reference/flux/stdlib/built-in/outputs/to.md index fa139207a..b9282e9c8 100644 --- a/content/influxdb/v2.0/reference/flux/stdlib/built-in/outputs/to.md +++ b/content/influxdb/v2.0/reference/flux/stdlib/built-in/outputs/to.md @@ -109,7 +109,7 @@ _**Data type:** Array of strings_ ### fieldFn Function that takes a record from the input table and returns a record. -For each record from the input table, `fieldFn` returns an record that maps the +For each record from the input table, `fieldFn` returns a record that maps the output field key to the output value. Default is `(r) => ({ [r._field]: r._value })` diff --git a/content/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/map.md b/content/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/map.md index 7477d524a..b4ae8e5dd 100644 --- a/content/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/map.md +++ b/content/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/map.md @@ -38,7 +38,7 @@ Make sure `fn` parameter names match each specified parameter. To learn why, see ### fn A single argument function to apply to each record. -The return value must be an record. +The return value must be a record. _**Data type:** Function_ diff --git a/content/influxdb/v2.0/reference/flux/stdlib/contrib/discord/endpoint.md b/content/influxdb/v2.0/reference/flux/stdlib/contrib/discord/endpoint.md index e73e47091..3b673589e 100644 --- a/content/influxdb/v2.0/reference/flux/stdlib/contrib/discord/endpoint.md +++ b/content/influxdb/v2.0/reference/flux/stdlib/contrib/discord/endpoint.md @@ -60,7 +60,7 @@ Requires an `r` parameter. _**Data type:** Function_ -`mapFn` accepts a table row (`r`) and returns an record that must include the +`mapFn` accepts a table row (`r`) and returns a record that must include the following field: - `content`