From 6b405eb7e07fc4db008675c4b90536b0bb8002f4 Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Thu, 9 Feb 2023 12:17:56 +1000 Subject: [PATCH] Remove rules for ranges and options (#9793) * Remove rules for ranges and options * Return "Option syntax" --- contributing-guides/style-guide.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/contributing-guides/style-guide.md b/contributing-guides/style-guide.md index 68b084ba8..c0108428b 100644 --- a/contributing-guides/style-guide.md +++ b/contributing-guides/style-guide.md @@ -128,17 +128,6 @@ Keep the following guidelines in mind when choosing placeholders: which don't allow adding arbitrary text in them (ranges), then instead of generic placeholders use descriptive ones. For example prefer `input swipe {{x_position}} {{y_position}} {{x_position}} {{y_position}} {{seconds}}` instead of `input swipe {{-infinity..infinity}} {{-infinity..infinity}} {{-infinity..infinity}} {{-infinity..infinity}} {{1..infinity}}`. -### Range syntax - -All borders of integer and float ranges get included. If you want to exclude the border, then use incremented or decremented values to do it: -`{{1..5}}` == `[1-6)`. - -- Use `{{from..to}}` syntax for closed ranges. -- Use `{{-n..to}}` or `{{from..n}}` syntax for integer partially closed ranges where `n` is a keyword - signifying the minimum or maximum range value e.g. `{{1..n}}` - 1 or greater values. -- Use `{{integer}}` syntax for values where any integer is valid. -- Use `{{float}}` syntax for values where any float is valid. - ### Paths - Use `{{filename}}` when just file name is expected.