diff options
| author | gingerBill <bill@gingerbill.org> | 2023-09-30 15:34:39 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-09-30 15:34:39 +0100 |
| commit | 14adcb9db89f4a668210a56d909cdca96088aae2 (patch) | |
| tree | 3f11a5d5ca0dd638387abc60e6cc50a8e1604d0c /core/encoding/xml | |
| parent | 41a22bd83d9458249a60a9d1415f4862f1593b76 (diff) | |
Use `or_break` and `or_continue` where appropriate in the core library
Diffstat (limited to 'core/encoding/xml')
| -rw-r--r-- | core/encoding/xml/helpers.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/encoding/xml/helpers.odin b/core/encoding/xml/helpers.odin index 200c5c1de..e0b5ecc32 100644 --- a/core/encoding/xml/helpers.odin +++ b/core/encoding/xml/helpers.odin @@ -21,13 +21,13 @@ find_child_by_ident :: proc(doc: ^Document, parent_id: Element_ID, ident: string /* Skip commments. They have no name. */ - if child.kind != .Element { continue } + if child.kind != .Element { continue } /* If the ident matches and it's the nth such child, return it. */ if child.ident == ident { - if count == nth { return child_id, true } + if count == nth { return child_id, true } count += 1 } } |