Skip to content

Commit 4dbf124

Browse files
authored
fix: MD009 in docs/visual-basic (#17237)
Enable MD009 and ran `markdownlint --fix "docs/visual-basic/**/*.md"`
1 parent 694e657 commit 4dbf124

32 files changed

+36
-36
lines changed

docs/visual-basic/misc/bc30983.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Next
5555
- Use an `As` clause to specify the type of the control variable:
5656

5757
```vb
58-
For i As Double = m To n
58+
For i As Double = m To n
5959
```
6060

6161
## See also

docs/visual-basic/misc/bc31047.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Public Class OuterClass ' Generates compiler error BC31047.
1818
End Class
1919
```
2020

21-
Because `Protected` is a member access modifier, it can only be applied to a class member, such as a property, method, or nested class.
22-
21+
Because `Protected` is a member access modifier, it can only be applied to a class member, such as a property, method, or nested class.
22+
2323
**Error ID:** BC31047
2424

2525
## To correct this error

docs/visual-basic/misc/bc31441.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ End Class
2424
```vb
2525
Partial Class Product
2626

27-
' Implementation of the partial method, with Private missing,
28-
' causes this error.
27+
' Implementation of the partial method, with Private missing,
28+
' causes this error.
2929
'Sub valueChanged()
3030
' MsgBox(Value was changed to " & Me.Quantity)
3131
'End Sub

docs/visual-basic/misc/bc32127.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ A variable declared as nullable has been compared to an expression other than `N
2121
Dim number? As Integer = 5
2222

2323
If number IsNot Nothing Then
24-
If number.GetType() Is Type.GetType("System.Int32") Then
24+
If number.GetType() Is Type.GetType("System.Int32") Then
2525

2626
End If
2727
End If

docs/visual-basic/misc/bc36557.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A non-existent member name has been assigned to a property in an anonymous type
1515
' Not valid.
1616
Dim anon1 = New With {.Prop1 = 27, .Prop2 = .Prop3}
1717

18-
' The assignment is valid if the assigned property has been declared
18+
' The assignment is valid if the assigned property has been declared
1919
' and initialized.
2020
Dim anon2 = New With {.Prop1 = 27, .Prop2 = .Prop1}
2121
```

docs/visual-basic/misc/bc36566.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Public Sub ABC(ByVal X As Byte, Optional ByVal Y As Byte = 0, _
1717
Optional ByVal Z As Byte = 0)
1818
' ...
1919
' Argument Y is omitted by position, but supplied by name.
20-
Call ABC(6, , Y:=3)
20+
Call ABC(6, , Y:=3)
2121
```
2222

2323
**Error ID:** BC36566

docs/visual-basic/misc/bc36607.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A `From` or `Aggregate` clause has been specified without an `In` operator. You
1818
1. Add the `In` operator and key fields to the `From` or `Aggregate` clause. The following is an example:
1919

2020
```vb
21-
Dim names = From pers In people
21+
Dim names = From pers In people
2222
Select pers.FirstName, pers.LastName
2323
```
2424

docs/visual-basic/misc/bc36628.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: 3e92ae19-6a19-4b0b-9dd9-fba31cdb85a6
1212
A nullable type cannot be inferred from a reference type, such as an array, a class, or a `String`. The value from which the data type is inferred must be a value type. The following code illustrates this error.
1313

1414
```vb
15-
'' Not valid.
15+
'' Not valid.
1616
'Dim arrList? = New ArrayList
1717
'Dim except? = New Exception
1818
'Dim obj? = New Object

docs/visual-basic/misc/bc36639.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: 5913f9b6-2929-4c05-8dd1-00b10fcd5a83
1212
A lambda expression declared within a `Sub` or function cannot use any `ByRef` parameters of that `Sub` or function. For example, the following code will cause this error because the `ByRef` parameter `n` is used in the lambda expression.
1313

1414
```vb
15-
'' Not valid.
15+
'' Not valid.
1616
'Sub ExampleSub(ByRef n As Integer)
1717

1818
' Dim lambda = Function(p As Integer) p + n

docs/visual-basic/programming-guide/concepts/async/start-multiple-async-tasks-and-process-them-as-they-complete.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Class MainWindow
138138
Dim downloadTasksQuery As IEnumerable(Of Task(Of Integer)) =
139139
From url In urlList Select ProcessURLAsync(url, client, ct)
140140

141-
' ***Use ToList to execute the query and start the download tasks.
141+
' ***Use ToList to execute the query and start the download tasks.
142142
Dim downloadTasks As List(Of Task(Of Integer)) = downloadTasksQuery.ToList()
143143

144144
' ***Add a loop to process the tasks one at a time until none remain.
@@ -160,7 +160,7 @@ Class MainWindow
160160
' Bundle the processing steps for a website into one async method.
161161
Async Function ProcessURLAsync(url As String, client As HttpClient, ct As CancellationToken) As Task(Of Integer)
162162

163-
' GetAsync returns a Task(Of HttpResponseMessage).
163+
' GetAsync returns a Task(Of HttpResponseMessage).
164164
Dim response As HttpResponseMessage = Await client.GetAsync(url, ct)
165165

166166
' Retrieve the website contents from the HttpResponseMessage.

0 commit comments

Comments
 (0)