docs: Add recommended language changes

Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
This commit is contained in:
Joshua Barton 2022-07-14 11:06:35 -05:00 committed by GitHub
parent 2278d30857
commit 0dfcbe6d0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 12 deletions

View File

@ -1,14 +1,12 @@
---
page_title: endswith - Functions - Configuration Language
description: |-
The endswith function takes a given string and a given suffix value,
and returns true if the first given string contains the given value at its end.
The endswith function takes two values: a string to check and a suffix string. It returns true if the first string ends with that exact suffix value.
---
# `endswith` Function
`endswith` takes a given string and a given suffix value,
and returns true if the first given string contains the given value at its end.
`endswith` takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix value.
```hcl
endswith(string, suffix)
@ -26,5 +24,4 @@ false
## Related Functions
- [`startswith`](/language/functions/startswith) takes a given string and a given prefix value,
and returns true if the first given string contains the given value at its beginning
- [`startswith`](/language/functions/startswith) takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix.

View File

@ -1,14 +1,12 @@
---
page_title: startsswith - Functions - Configuration Language
description: |-
The startswith function takes a given string and a given prefix value,
and returns true if the first given string contains the given value at its beginning.
The startswith function takes two values: a string to check and a prefix string. It returns true if the string begins with that exact prefix.
---
# `startswith` Function
`startswith` takes a given string and a given prefix value,
and returns true if the first given string contains the given value at its beginning.
`startswith` takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix.
```hcl
startswith(string, prefix)
@ -26,5 +24,4 @@ false
## Related Functions
- [`endswith`](/language/functions/endswith) takes a given string and a given suffix value,
and returns true if the first given string contains the given value at its end
- [`endswith`](/language/functions/endswith) takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix value.