Skip to content

Commit

Permalink
rename nested loop index (#643)
Browse files Browse the repository at this point in the history
Signed-off-by: ibnHatab <lib.aca55a@gmail.com>
  • Loading branch information
ibnHatab authored Jan 22, 2022
1 parent 57a7f92 commit 55f4854
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rosidl_adapter/rosidl_adapter/resource/struct.idl.em
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ else:
struct @(msg.msg_name) {
@[if msg.fields]@
@[ for i, field in enumerate(msg.fields)]@
@[if i > 0]@
@[ if i > 0]@

@[end if]@
@[ end if]@
@[ if field.annotations.get('comment', [])]@
@@verbatim (language="comment", text=@
@[ for i, line in enumerate(field.annotations['comment'])]
@[ for j, line in enumerate(field.annotations['comment'])]
@(string_to_idl_string_literal(line))@
@[ if i < len(field.annotations.get('comment')) - 1]@
@[ if j < len(field.annotations.get('comment')) - 1]@
"\n"@
@[ end if]@
@[ end for]@
Expand Down

0 comments on commit 55f4854

Please sign in to comment.