Minor docs note about C++ behavior

pull/21/head
Bradlee Speice 2019-11-07 22:53:42 -05:00
parent 3240282354
commit a5c8bbb05b
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ where
if token_length > 0 {
// FIXME: Unwrap is unjustified here
// Currently just assume that people are going to be nice about the token buffer
// and not oversize it.
// and not oversize it. C++ relies on throwing an exception if bounds are violated.
self.buffer
.put_slice(
size_of::<TerminateDriverDefn>() as IndexT,