style usages part one (openarray => openArray) (#19321)

* style usages (openArray)

* revert doc changes
This commit is contained in:
flywind 2022-01-04 20:29:50 +08:00 • committed by GitHub
commit 9df195ef58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 76 additions and 76 deletions

View file

@ -163,7 +163,7 @@ when true: #embeddingTest
"""
# Expression template
proc test_expression(nums: openarray[int] = []): string =
proc test_expression(nums: openArray[int] = []): string =
var i = 2
tmpli html"""
$(no_substitution())
@ -171,7 +171,7 @@ when true: #embeddingTest
<div id="age">Age: $($nums[i] & "!!")</div>
"""
proc test_statements(nums: openarray[int] = []): string =
proc test_statements(nums: openArray[int] = []): string =
tmpli html"""
$(test_expression(nums))
$if true {

View file

@ -1,6 +1,6 @@
#? stdtmpl
#proc sunsetTemplate*(current, ticker, content: string,
# tabs: openarray[array[0..1, string]]): string =
# tabs: openArray[array[0..1, string]]): string =
# result = ""
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

View file

@ -173,7 +173,7 @@ block t2585:
st
echo "a ", $fb
proc render(rdat: var RenderData; passes: var openarray[RenderPass]; proj: Mat2;
proc render(rdat: var RenderData; passes: var openArray[RenderPass]; proj: Mat2;
indexType = 1) =
for i in 0 ..< len(passes):
echo "blah ", repr(passes[i])