Remove "Requires 1.5" from manuals
Before adoption: this commit came in with the history the project adopted, so no landing records it.
No longer necessary now that manuals are versioned.
authored by David Tolnay · committed by David Tolnay · parent 83e8ec5 · Browse files · 2 files·+16 added−16 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+16 added−16 removed
- other:+16 added−16 removed
Provenance
- Commit
1758c1b- Tree
f8d31a3- Author
David Tolnay <dtolnay@gmail.com>- Committer
David Tolnay <dtolnay@gmail.com>- Parent
83e8ec5
2 files changed+16 added−16 removed
modified:docs/content/3.manual/v1.5/manual.yml+8 added-8 removed
978 unmodified lines979 - program: all980 input: '[]'981 output: ["true"]982 983- - title: "\\[Requires 1.5\\] `flatten`, `flatten(depth)`"983+ - title: "`flatten`, `flatten(depth)`"984 body: |985 986 The filter `flatten` takes as input an array of nested arrays,987 and produces a flat array in which all arrays inside the original1007 unmodified lines1995 1996 evaluates to: true, true, false, false.1997 1998 entries:1999- - title: "\\[Requires 1.5\\] `test(val)`, `test(regex; flags)`"1999+ - title: "`test(val)`, `test(regex; flags)`"2000 body: |2001 2002 Like `match`, but does not return match objects, only `true` or `false`2003 for whether or not the regex matches the input.5 unmodified lines2009 - program: '.[] | test("a b c # spaces are ignored"; "ix")'2010 input: '["xabcd", "ABC"]'2011 output: ['true', 'true']2012 2013- - title: "\\[Requires 1.5\\] `match(val)`, `match(regex; flags)`"2013+ - title: "`match(val)`, `match(regex; flags)`"2014 body: |2015 2016 **match** outputs an object for each match it finds. Matches have2017 the following fields:36 unmodified lines2054 input: '"abc"'2055 output: [3]2056 2057 2058- - title: "\\[Requires 1.5\\] `capture(val)`, `capture(regex; flags)`"2058+ - title: "`capture(val)`, `capture(regex; flags)`"2059 body: |2060 2061 Collects the named captures in a JSON object, with the name2062 of each capture as the key, and the matched string as the3 unmodified lines2066 - program: 'capture("(?<a>[a-z]+)-(?<n>[0-9]+)")'2067 input: '"xyzzy-14"'2068 output: ['{ "a": "xyzzy", "n": "14" }']2069 2070- - title: "\\[Requires 1.5\\] `scan(regex)`, `scan(regex; flags)`"2070+ - title: "`scan(regex)`, `scan(regex; flags)`"2071 body: |2072 2073 Emit a stream of the non-overlapping substrings of the input2074 that match the regex in accordance with the flags, if any20 unmodified lines2095 input: '"ab,cd, ef"'2096 output: ['"ab","cd","ef"']2097 2098 2099- - title: "\\[Requires 1.5\\] `splits(regex)`, `splits(regex; flags)`"2099+ - title: "`splits(regex)`, `splits(regex; flags)`"2100 body: |2101 2102 These provide the same results as their `split` counterparts,2103 but as a stream instead of an array.2 unmodified lines2106 - program: 'splits(", *")'2107 input: '("ab,cd", "ef, gh")'2108 output: ['"ab"', '"cd"', '"ef"', '"gh"']2109 2110- - title: "\\[Requires 1.5\\] `sub(regex; tostring)` `sub(regex; string; flags)`"2110+ - title: "`sub(regex; tostring)` `sub(regex; string; flags)`"2111 body: |2112 2113 Emit the string obtained by replacing the first match of regex in the2114 input string with `tostring`, after interpolation. `tostring` should7 unmodified lines2122 input: '"123abc456"'2123 output: '"ZabcZabc"'2124 2125 2126- - title: "\\[Requires 1.5\\] `gsub(regex; string)`, `gsub(regex; string; flags)`"2126+ - title: "`gsub(regex; string)`, `gsub(regex; string; flags)`"2127 body: |2128 2129 `gsub` is like `sub` but all the non-overlapping occurrences of the regex are2130 replaced by the string, after interpolation.748 unmodified linesmodified:docs/content/3.manual/manual.yml+8 added-8 removed
1020 unmodified lines1021 - program: all1022 input: '[]'1023 output: ["true"]1024 1025- - title: "\\[Requires 1.5\\] `flatten`, `flatten(depth)`"1025+ - title: "`flatten`, `flatten(depth)`"1026 body: |1027 1028 The filter `flatten` takes as input an array of nested arrays,1029 and produces a flat array in which all arrays inside the original1034 unmodified lines2064 2065 evaluates to: true, true, false, false.2066 2067 entries:2068- - title: "\\[Requires 1.5\\] `test(val)`, `test(regex; flags)`"2068+ - title: "`test(val)`, `test(regex; flags)`"2069 body: |2070 2071 Like `match`, but does not return match objects, only `true` or `false`2072 for whether or not the regex matches the input.5 unmodified lines2078 - program: '.[] | test("a b c # spaces are ignored"; "ix")'2079 input: '["xabcd", "ABC"]'2080 output: ['true', 'true']2081 2082- - title: "\\[Requires 1.5\\] `match(val)`, `match(regex; flags)`"2082+ - title: "`match(val)`, `match(regex; flags)`"2083 body: |2084 2085 **match** outputs an object for each match it finds. Matches have2086 the following fields:36 unmodified lines2123 input: '"abc"'2124 output: [3]2125 2126 2127- - title: "\\[Requires 1.5\\] `capture(val)`, `capture(regex; flags)`"2127+ - title: "`capture(val)`, `capture(regex; flags)`"2128 body: |2129 2130 Collects the named captures in a JSON object, with the name2131 of each capture as the key, and the matched string as the3 unmodified lines2135 - program: 'capture("(?<a>[a-z]+)-(?<n>[0-9]+)")'2136 input: '"xyzzy-14"'2137 output: ['{ "a": "xyzzy", "n": "14" }']2138 2139- - title: "\\[Requires 1.5\\] `scan(regex)`, `scan(regex; flags)`"2139+ - title: "`scan(regex)`, `scan(regex; flags)`"2140 body: |2141 2142 Emit a stream of the non-overlapping substrings of the input2143 that match the regex in accordance with the flags, if any20 unmodified lines2164 input: '"ab,cd, ef"'2165 output: ['"ab","cd","ef"']2166 2167 2168- - title: "\\[Requires 1.5\\] `splits(regex)`, `splits(regex; flags)`"2168+ - title: "`splits(regex)`, `splits(regex; flags)`"2169 body: |2170 2171 These provide the same results as their `split` counterparts,2172 but as a stream instead of an array.2 unmodified lines2175 - program: 'splits(", *")'2176 input: '("ab,cd", "ef, gh")'2177 output: ['"ab"', '"cd"', '"ef"', '"gh"']2178 2179- - title: "\\[Requires 1.5\\] `sub(regex; tostring)` `sub(regex; string; flags)`"2179+ - title: "`sub(regex; tostring)` `sub(regex; string; flags)`"2180 body: |2181 2182 Emit the string obtained by replacing the first match of regex in the2183 input string with `tostring`, after interpolation. `tostring` should7 unmodified lines2191 input: '"123abc456"'2192 output: '"ZabcZabc"'2193 2194 2195- - title: "\\[Requires 1.5\\] `gsub(regex; string)`, `gsub(regex; string; flags)`"2195+ - title: "`gsub(regex; string)`, `gsub(regex; string; flags)`"2196 body: |2197 2198 `gsub` is like `sub` but all the non-overlapping occurrences of the regex are2199 replaced by the string, after interpolation.748 unmodified lines