Skip to content

Commit e674a83

Browse files
committed
Correct comments
1 parent 359eb68 commit e674a83

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

rosidl_gen/templates/message.dot

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class {{=objectWrapper}} {
293293
this.freeze();
294294
}
295295

296-
{{/* Set default values if the fields have. */}}
296+
{{/* Set default values if the fields of the message have. */}}
297297
_setDefaults() {
298298
{{~ it.spec.fields :field}}
299299
{{? field.type.isPrimitiveType && !field.type.isArray && field.default_value}}
@@ -376,8 +376,8 @@ class {{=objectWrapper}} {
376376
}
377377
}
378378
}
379-
{{/* For non-typed array like int64/uint64/bool. */}}
380379
{{??}}
380+
{{/* For non-typed array like int64/uint64/bool. */}}
381381
this._refObject.{{=field.name}} = this._{{=field.name}}Array;
382382
{{?}}
383383
{{?? field.type.isArray && field.type.isPrimitiveType && isTypedArrayType(field.type) && field.type.isFixedSizeArray}}
@@ -661,9 +661,8 @@ class {{=arrayWrapper}} {
661661

662662
{{/* Put all data currently stored in `this._wrappers` into `this._refObject`. */}}
663663
freeze(own) {
664-
{{? usePlainTypedArray}}
665664
{{/* When it's a TypedArray: no need to copy to `this._refArray`. */}}
666-
{{??}}
665+
{{? !usePlainTypedArray}}
667666
this._wrappers.forEach((wrapper, index) => {
668667
wrapper.freeze(own);
669668
this._refArray[index] = wrapper.refObject;

0 commit comments

Comments
 (0)