Skip to content

Commit c0ad5ba

Browse files
committed
Dammit
1 parent 9eed253 commit c0ad5ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.org

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ If you want to use validations from JavaScript, first build the js:
135135
#+BEGIN_SRC javascript
136136
var statement_str = '{"id":"fd41c918-b88b-4b20-a0a5-a4c32391aaa0", "actor":{"objectType": "Agent","name":"Project Tin Can API","mbox":"mailto:user@example.com"},"verb":{"id":"http://example.com/xapi/verbs#sent-a-statement","display":{ "en-US":"sent" }},"object":{"id":"http://example.com/xapi/activity/simplestatement","definition":{"name":{ "en-US":"simple statement" },"description":{ "en-US":"A simple Experience API statement. Note that the LRS does not need to have any prior information about the Actor (learner), the verb, or the Activity/object." }}}}';
137137
var statement_json = JSON.parse(s);
138-
xapi_schema.core.validate_statement_data_js(statement-str); // => statement JSON
139-
xapi_schema.core.validate_statement_data_js(statement-json); // => statement JSON
138+
xapi_schema.core.validate_statement_data_js(statement_str); // => statement JSON
139+
xapi_schema.core.validate_statement_data_js(statement_json); // => statement JSON
140140
#+END_SRC
141141

142142
** Testing

0 commit comments

Comments
 (0)