diff --git a/docs/labs/conversion.html b/docs/labs/conversion.html index e6f11aae..b495bd3b 100644 --- a/docs/labs/conversion.html +++ b/docs/labs/conversion.html @@ -7,29 +7,11 @@ + - - - - - - - -
diff --git a/docs/labs/conversion.js b/docs/labs/conversion.js new file mode 100644 index 00000000..c290fb93 --- /dev/null +++ b/docs/labs/conversion.js @@ -0,0 +1,19 @@ +info = +{ + hints: [ + { + absent: "unsigned", + text: "The type defined for queue_count should exactly match the return type of get_queue." + }, + { + present: String.raw`unsigned\s+queue_count`, + text: "The declared return type of get_queue is `unsigned int`; you should match it exactly instead of using a synonym like `unsigned`." + } + ], + expected: [ + 'unsigned int queue_count = 0;' + ], + correct: [ + String.raw`^ unsigned\s+int\s+queue_count = 0 ; $` + ], +}