Skip to content

Commit

Permalink
Fix getSolutionCode
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Jan 29, 2023
1 parent b48a775 commit 565e06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func GetSolutionCode(q *leetcode.QuestionData) (string, error) {
var codeLinesToKeep []string
inCode := false
for _, line := range codeLines {
if !inCode && strings.Contains(line, config.CodeEndMarker) {
if !inCode && strings.Contains(line, config.CodeBeginMarker) {
inCode = true
continue
}
Expand Down

0 comments on commit 565e06b

Please sign in to comment.