Skip to content

Commit

Permalink
Address wording feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg committed Dec 16, 2024
1 parent 10380c0 commit bdb1123
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions website/cue/reference/remap/functions/object_from_array.cue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package metadata
remap: functions: object_from_array: {
category: "Object"
description: """
Iterate over either one or a pair of arrays and create an object out of all the key-value pairs contained in them.
Any entries that are missing the value use `null` instead.
Iterate over either one array of arrays or a pair of arrays and create an object out of all the key-value pairs contained in them.
With one array of arrays, any entries with no value use `null` instead.
Any keys that are `null` skip the corresponding value.
If a single parameter is given, it must contain an array of all the input arrays.
Expand All @@ -31,7 +31,7 @@ remap: functions: object_from_array: {
return: {
types: ["object"]
rules: [
"`object_from_array` is considered fallible in the following cases: if either of the parameters is not an array; if only the `value` parameter is present and it is not an array of arrays; or if any of the keys are not either a string or `null`.",
"`object_from_array` is considered fallible in the following cases: if any of the parameters is not an array; if only the `value` parameter is present and it is not an array of arrays; or if any of the keys are not either a string or `null`.",
]
}

Expand Down
2 changes: 1 addition & 1 deletion website/cue/reference/remap/functions/zip.cue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ remap: functions: zip: {
return: {
types: ["array"]
rules: [
"`zip` is considered fallible if either of the parameters is not an array, or if only the first parameter is present and it is not an array of arrays.",
"`zip` is considered fallible if any of the parameters is not an array, or if only the first parameter is present and it is not an array of arrays.",
]
}

Expand Down

0 comments on commit bdb1123

Please sign in to comment.