mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-27 09:21:14 -06:00
docs: Add recommended language changes
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
This commit is contained in:
parent
2278d30857
commit
0dfcbe6d0c
@ -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.
|
||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user