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
|
|
@ -324,15 +324,15 @@ block t6691:
|
|||
block t6782:
|
||||
type
|
||||
Reader = concept c
|
||||
c.read(openarray[byte], int, int) is int
|
||||
c.read(openArray[byte], int, int) is int
|
||||
Rdr = concept c
|
||||
c.rd(openarray[byte], int, int) is int
|
||||
c.rd(openArray[byte], int, int) is int
|
||||
|
||||
type TestFile = object
|
||||
|
||||
proc read(r: TestFile, dest: openarray[byte], offset: int, limit: int): int =
|
||||
proc read(r: TestFile, dest: openArray[byte], offset: int, limit: int): int =
|
||||
result = 0
|
||||
proc rd(r: TestFile, dest: openarray[byte], offset: int, limit: int): int =
|
||||
proc rd(r: TestFile, dest: openArray[byte], offset: int, limit: int): int =
|
||||
result = 0
|
||||
|
||||
doAssert TestFile is Reader
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue