Fix mjpResourceProvider example
This commit is contained in:
committed by
GitHub
parent
abf6d41b7f
commit
8c63a8b8c7
@@ -401,7 +401,7 @@ the callbacks:
|
|||||||
|
|
||||||
.. code-block:: C
|
.. code-block:: C
|
||||||
|
|
||||||
int data_open_callback(mjResource* resource) {
|
int str_open_callback(mjResource* resource) {
|
||||||
// call some util function to validate
|
// call some util function to validate
|
||||||
if (!is_valid_data_uri(resource->name)) {
|
if (!is_valid_data_uri(resource->name)) {
|
||||||
return 0; // return failure
|
return 0; // return failure
|
||||||
|
|||||||
Reference in New Issue
Block a user