Skip to content

Commit 7342d36

Browse files
authored
Fix typo continuation maker -> marker (#5802)
1 parent 4b1feaa commit 7342d36

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arrow-ipc/src/convert.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,15 @@ pub fn try_schema_from_ipc_buffer(buffer: &[u8]) -> Result<Schema, ArrowError> {
176176
// 4 bytes - the byte length of the payload
177177
// a flatbuffer Message whose header is the Schema
178178
if buffer.len() >= 4 {
179-
// check continuation maker
180-
let continuation_maker = &buffer[0..4];
181-
let begin_offset: usize = if continuation_maker.eq(&CONTINUATION_MARKER) {
179+
// check continuation marker
180+
let continuation_marker = &buffer[0..4];
181+
let begin_offset: usize = if continuation_marker.eq(&CONTINUATION_MARKER) {
182182
// 4 bytes: CONTINUATION_MARKER
183183
// 4 bytes: length
184184
// buffer
185185
4
186186
} else {
187-
// backward compatibility for buffer without the continuation maker
187+
// backward compatibility for buffer without the continuation marker
188188
// 4 bytes: length
189189
// buffer
190190
0
@@ -198,7 +198,7 @@ pub fn try_schema_from_ipc_buffer(buffer: &[u8]) -> Result<Schema, ArrowError> {
198198
Ok(fb_to_schema(ipc_schema))
199199
} else {
200200
Err(ArrowError::ParseError(
201-
"The buffer length is less than 4 and missing the continuation maker or length of buffer".to_string()
201+
"The buffer length is less than 4 and missing the continuation marker or length of buffer".to_string()
202202
))
203203
}
204204
}

0 commit comments

Comments
 (0)