Skip to content

Commit 113bd64

Browse files
committed
apply c-bata#239
1 parent 14a9c8a commit 113bd64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

document_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ This is a`),
182182
func ExampleDocument_GetWordBeforeCursorUntilSeparator() {
183183
d := &Document{
184184
Text: `hello,i am ktr0731`,
185-
cursorPosition: len(`hello,i am c`),
185+
cursorPosition: len(`hello,i am k`),
186186
}
187187
fmt.Println(d.GetWordBeforeCursorUntilSeparator(","))
188188
// Output:
189-
// i am c
189+
// i am k
190190
}
191191

192192
func ExampleDocument_GetWordAfterCursorUntilSeparator() {

0 commit comments

Comments
 (0)