Skip to content

Commit 49e8d5d

Browse files
Youssef1313Ron Petrusha
authored andcommitted
Use PascalCase for method name, remove ByVal (#1564)
* Use PascalCase for method name, remove ByVal * fix array size
1 parent bf03595 commit 49e8d5d

File tree

1 file changed

+3
-3
lines changed
  • snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnProcedures/VB

1 file changed

+3
-3
lines changed

snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnProcedures/VB/Class1.vb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ Public Class Class1
1111

1212
'****************************************************************************
1313
'<Snippet66>
14-
Function allOnes(ByVal n As Integer) As Integer()
15-
Dim i As Integer, iArray(n) As Integer
14+
Function AllOnes(n As Integer) As Integer()
15+
Dim iArray(n - 1) As Integer
1616
For i = 0 To n - 1
1717
iArray(i) = 1
18-
Next i
18+
Next
1919
Return iArray
2020
End Function
2121
'</Snippet66>

0 commit comments

Comments
 (0)