Fix return value of mj_saveXML and mj_saveXMLString, fixes #2247
PiperOrigin-RevId: 700269761 Change-Id: Ifb7e9c66c70eac7d681cfcf106712d47291cf9e2
This commit is contained in:
committed by
Copybara-Service
parent
6e129a5ab2
commit
e310c23267
@@ -349,7 +349,7 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
|
||||
type=ValueType(name='int'),
|
||||
),
|
||||
),
|
||||
doc='Save spec to XML string, return 1 on success, 0 otherwise.',
|
||||
doc='Save spec to XML string, return 0 on success, -1 on failure. If length of the output buffer is too small, returns the required size.', # pylint: disable=line-too-long
|
||||
)),
|
||||
('mj_saveXML',
|
||||
FunctionDecl(
|
||||
|
||||
Reference in New Issue
Block a user