We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17e4a91 commit 9ac9f6eCopy full SHA for 9ac9f6e
1 file changed
_docs/tutorials/advanced/handling_type_memory/index.md
@@ -135,7 +135,7 @@ mypackage__msg__MyType mymsg;
135
136
// Assigning dynamic memory to the frame_id char sequence
137
mymsg.header.frame_id.capacity = 100;
138
-mymsg.header.frame_id.data = (char*) malloc(mymsg.values.capacity * sizeof(char));
+mymsg.header.frame_id.data = (char*) malloc(mymsg.header.frame_id.capacity * sizeof(char));
139
mymsg.header.frame_id.size = 0;
140
141
// Assigning value to the frame_id char sequence
0 commit comments