Skip to content

Conversation

xushiwei
Copy link
Member

No description provided.

b.Grow(len(text) + n*4)
base = 0
delimRightLeft := delimRight + delimLeft
for i := 0; i < n; i++ {
off := offs[i]
b.WriteString(text[base:off])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golangci-lint] Error return value of b.WriteString is not checked (errcheck)

If you have any questions about this comment, feel free to raise an issue here:

for i := 0; i < n; i++ {
off := offs[i]
b.WriteString(text[base:off])
b.WriteString("}}{{")
b.WriteString(delimRightLeft)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golangci-lint] Error return value of b.WriteString is not checked (errcheck)

If you have any questions about this comment, feel free to raise an issue here:

for i := 0; i < n; i++ {
off := offs[i]
b.WriteString(text[base:off])
b.WriteString("}}{{")
b.WriteString(delimRightLeft)
base = off
}
b.WriteString(text[base:])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golangci-lint] Error return value of b.WriteString is not checked (errcheck)

If you have any questions about this comment, feel free to raise an issue here:

@xushiwei xushiwei merged commit a58ab64 into goplus:main Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant