Skip to content

Commit c2280d0

Browse files
authored
Missing square bracket in span notation
1 parent 2a4ad69 commit c2280d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/extensibility/inside-the-editor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ A <xref:Microsoft.VisualStudio.Text.SnapshotPoint> represents a character positi
102102

103103
#### Spans and NormalizedSpanCollections
104104

105-
A <xref:Microsoft.VisualStudio.Text.Span> represents an interval that can be applied to a span of text in a text snapshot. Snapshot positions are zero-based, so spans can start at any position including zero. The `End` property of a span is equal to the sum of its `Start` property and its `Length` property. A `Span` does not include the character that is indexed by the `End` property. For example, a span that has Start=5 and Length=3 has End=8, and it includes the characters at positions 5, 6, and 7. The notation for this span is 5..8).
105+
A <xref:Microsoft.VisualStudio.Text.Span> represents an interval that can be applied to a span of text in a text snapshot. Snapshot positions are zero-based, so spans can start at any position including zero. The `End` property of a span is equal to the sum of its `Start` property and its `Length` property. A `Span` does not include the character that is indexed by the `End` property. For example, a span that has Start=5 and Length=3 has End=8, and it includes the characters at positions 5, 6, and 7. The notation for this span is [5..8).
106106

107107
Two spans intersect if they have any positions in common, including the End position. Therefore, the intersection of [3, 5) and [2, 7) is [3, 5) and the intersection of [3, 5) and [5, 7) is [5, 5). (Notice that [5, 5) is an empty span.)
108108

@@ -315,4 +315,4 @@ Statement completion provides pop-up lists of potential completions for method n
315315
## See also
316316

317317
- [Language service and editor extension points](../extensibility/language-service-and-editor-extension-points.md)
318-
- [Editor imports](../extensibility/editor-imports.md)
318+
- [Editor imports](../extensibility/editor-imports.md)

0 commit comments

Comments
 (0)