We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19a7eb1 commit 3e00607Copy full SHA for 3e00607
leetcode/question.go
@@ -184,11 +184,11 @@ func (m *MetaData) normalize() {
184
if m.Return != nil {
185
m.Return.Type = normalizeType(m.Return.Type)
186
}
187
- for _, method := range m.Methods {
188
- for i, param := range method.Params {
189
- method.Params[i].Type = normalizeType(param.Type)
+ for i, method := range m.Methods {
+ for j, param := range method.Params {
+ m.Methods[i].Params[j].Type = normalizeType(param.Type)
190
191
- method.Return.Type = normalizeType(method.Return.Type)
+ m.Methods[i].Return.Type = normalizeType(method.Return.Type)
192
193
194
0 commit comments