style usages part one (openarray => openArray) (#19321)
* style usages (openArray) * revert doc changes
This commit is contained in:
parent
1869826668
commit
9df195ef58
49 changed files with 76 additions and 76 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue