Skip to content

Commit

Permalink
deploy: e7c59a8
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Aug 30, 2024
1 parent 8b48290 commit d76607e
Show file tree
Hide file tree
Showing 4 changed files with 676 additions and 659 deletions.
2 changes: 1 addition & 1 deletion chapter_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h1 class="menu-title">example</h1>
<main>
<h1 id="mdbook-quiz"><a class="header" href="#mdbook-quiz">mdbook-quiz</a></h1>
<p>mdbook-quiz is a tool for embedding interactive quizzes into your mdBook. Here's an example you can try out:</p>
<div class="quiz-placeholder" data-quiz-name="quiz-example" data-quiz-questions="{&quot;questions&quot;:[{&quot;context&quot;:&quot;Immutable means \&quot;not mutable\&quot;, or not changeable.\n&quot;,&quot;id&quot;:&quot;18ea4c61-c7c3-433f-add5-d3d3156e3e71&quot;,&quot;type&quot;:&quot;MultipleChoice&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;`x` cannot be changed after being assigned to a value.&quot;},&quot;prompt&quot;:{&quot;distractors&quot;:[&quot;`x` is stored in the immutable region of memory.&quot;,&quot;After being defined, `x` can be changed at most once.&quot;,&quot;You cannot create a reference to `x`.&quot;],&quot;prompt&quot;:&quot;What does it mean if a variable `x` is immutable?\n&quot;}},{&quot;context&quot;:&quot;For example, you can make a mutable variable `x` by writing: `let mut x = 1`.\n&quot;,&quot;id&quot;:&quot;dbbaea6a-f469-464f-9d60-99ae98456b6a&quot;,&quot;type&quot;:&quot;ShortAnswer&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;mut&quot;},&quot;prompt&quot;:{&quot;prompt&quot;:&quot;What is the keyword used after `let` to indicate that a variable can be mutated?&quot;}},{&quot;context&quot;:&quot;This is a compiler error because line 4 tries to mutate `x` when `x` is not marked as `mut`.\n&quot;,&quot;id&quot;:&quot;bba6a299-b20f-4685-934a-792a591df3c0&quot;,&quot;type&quot;:&quot;Tracing&quot;,&quot;answer&quot;:{&quot;doesCompile&quot;:false,&quot;lineNumber&quot;:4},&quot;prompt&quot;:{&quot;program&quot;:&quot;fn main() {\n let x = 1;\n println!(\&quot;{x}\&quot;);\n x += 1;\n println!(\&quot;{x}\&quot;);\n}\n&quot;}}]}" data-quiz-fullscreen="" ></div>
<div class="quiz-placeholder" data-quiz-name="quiz-example" data-quiz-questions="{&quot;questions&quot;:[{&quot;context&quot;:&quot;Immutable means \&quot;not mutable\&quot;, or not changeable.\n&quot;,&quot;id&quot;:&quot;18ea4c61-c7c3-433f-add5-d3d3156e3e71&quot;,&quot;type&quot;:&quot;MultipleChoice&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;`x` cannot be changed after being assigned to a value.&quot;},&quot;prompt&quot;:{&quot;distractors&quot;:[&quot;`x` is stored in the immutable region of memory.&quot;,&quot;After being defined, `x` can be changed at most once.&quot;,&quot;You cannot create a reference to `x`.&quot;],&quot;prompt&quot;:&quot;What does it mean if a variable `x` is immutable?\n&quot;}},{&quot;context&quot;:&quot;For example, you can make a mutable variable `x` by writing: `let mut x = 1`.\n&quot;,&quot;id&quot;:&quot;dbbaea6a-f469-464f-9d60-99ae98456b6a&quot;,&quot;type&quot;:&quot;ShortAnswer&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;mut&quot;},&quot;prompt&quot;:{&quot;prompt&quot;:&quot;What is the keyword used after `let` to indicate that a variable can be mutated?&quot;}},{&quot;context&quot;:&quot;This is a compiler error because line 4 tries to mutate `x` when `x` is not marked as `mut`.\n&quot;,&quot;id&quot;:&quot;bba6a299-b20f-4685-934a-792a591df3c0&quot;,&quot;type&quot;:&quot;Tracing&quot;,&quot;answer&quot;:{&quot;doesCompile&quot;:false,&quot;lineNumber&quot;:4},&quot;prompt&quot;:{&quot;program&quot;:&quot;fn main() {\n let x = 1;\n println!(\&quot;{x}\&quot;);\n x += 1;\n println!(\&quot;{x}\&quot;);\n}\n&quot;}}]}" data-quiz-fullscreen="" data-quiz-show-bug-reporter="" ></div>
<p>For more documentation, go to <a href="https://github.com/cognitive-engineering-lab/mdbook-quiz">https://github.com/cognitive-engineering-lab/mdbook-quiz</a>.</p>
<script type="text/javascript" src="quiz/quiz-embed.iife.js"></script><link rel="stylesheet" type="text/css" href="quiz/style.css">
</main>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h1 class="menu-title">example</h1>
<main>
<h1 id="mdbook-quiz"><a class="header" href="#mdbook-quiz">mdbook-quiz</a></h1>
<p>mdbook-quiz is a tool for embedding interactive quizzes into your mdBook. Here's an example you can try out:</p>
<div class="quiz-placeholder" data-quiz-name="quiz-example" data-quiz-questions="{&quot;questions&quot;:[{&quot;context&quot;:&quot;Immutable means \&quot;not mutable\&quot;, or not changeable.\n&quot;,&quot;id&quot;:&quot;18ea4c61-c7c3-433f-add5-d3d3156e3e71&quot;,&quot;type&quot;:&quot;MultipleChoice&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;`x` cannot be changed after being assigned to a value.&quot;},&quot;prompt&quot;:{&quot;distractors&quot;:[&quot;`x` is stored in the immutable region of memory.&quot;,&quot;After being defined, `x` can be changed at most once.&quot;,&quot;You cannot create a reference to `x`.&quot;],&quot;prompt&quot;:&quot;What does it mean if a variable `x` is immutable?\n&quot;}},{&quot;context&quot;:&quot;For example, you can make a mutable variable `x` by writing: `let mut x = 1`.\n&quot;,&quot;id&quot;:&quot;dbbaea6a-f469-464f-9d60-99ae98456b6a&quot;,&quot;type&quot;:&quot;ShortAnswer&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;mut&quot;},&quot;prompt&quot;:{&quot;prompt&quot;:&quot;What is the keyword used after `let` to indicate that a variable can be mutated?&quot;}},{&quot;context&quot;:&quot;This is a compiler error because line 4 tries to mutate `x` when `x` is not marked as `mut`.\n&quot;,&quot;id&quot;:&quot;bba6a299-b20f-4685-934a-792a591df3c0&quot;,&quot;type&quot;:&quot;Tracing&quot;,&quot;answer&quot;:{&quot;doesCompile&quot;:false,&quot;lineNumber&quot;:4},&quot;prompt&quot;:{&quot;program&quot;:&quot;fn main() {\n let x = 1;\n println!(\&quot;{x}\&quot;);\n x += 1;\n println!(\&quot;{x}\&quot;);\n}\n&quot;}}]}" data-quiz-fullscreen="" ></div>
<div class="quiz-placeholder" data-quiz-name="quiz-example" data-quiz-questions="{&quot;questions&quot;:[{&quot;context&quot;:&quot;Immutable means \&quot;not mutable\&quot;, or not changeable.\n&quot;,&quot;id&quot;:&quot;18ea4c61-c7c3-433f-add5-d3d3156e3e71&quot;,&quot;type&quot;:&quot;MultipleChoice&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;`x` cannot be changed after being assigned to a value.&quot;},&quot;prompt&quot;:{&quot;distractors&quot;:[&quot;`x` is stored in the immutable region of memory.&quot;,&quot;After being defined, `x` can be changed at most once.&quot;,&quot;You cannot create a reference to `x`.&quot;],&quot;prompt&quot;:&quot;What does it mean if a variable `x` is immutable?\n&quot;}},{&quot;context&quot;:&quot;For example, you can make a mutable variable `x` by writing: `let mut x = 1`.\n&quot;,&quot;id&quot;:&quot;dbbaea6a-f469-464f-9d60-99ae98456b6a&quot;,&quot;type&quot;:&quot;ShortAnswer&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;mut&quot;},&quot;prompt&quot;:{&quot;prompt&quot;:&quot;What is the keyword used after `let` to indicate that a variable can be mutated?&quot;}},{&quot;context&quot;:&quot;This is a compiler error because line 4 tries to mutate `x` when `x` is not marked as `mut`.\n&quot;,&quot;id&quot;:&quot;bba6a299-b20f-4685-934a-792a591df3c0&quot;,&quot;type&quot;:&quot;Tracing&quot;,&quot;answer&quot;:{&quot;doesCompile&quot;:false,&quot;lineNumber&quot;:4},&quot;prompt&quot;:{&quot;program&quot;:&quot;fn main() {\n let x = 1;\n println!(\&quot;{x}\&quot;);\n x += 1;\n println!(\&quot;{x}\&quot;);\n}\n&quot;}}]}" data-quiz-fullscreen="" data-quiz-show-bug-reporter="" ></div>
<p>For more documentation, go to <a href="https://github.com/cognitive-engineering-lab/mdbook-quiz">https://github.com/cognitive-engineering-lab/mdbook-quiz</a>.</p>
<script type="text/javascript" src="quiz/quiz-embed.iife.js"></script><link rel="stylesheet" type="text/css" href="quiz/style.css">
</main>
Expand Down
2 changes: 1 addition & 1 deletion print.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h1 class="menu-title">example</h1>
<main>
<h1 id="mdbook-quiz"><a class="header" href="#mdbook-quiz">mdbook-quiz</a></h1>
<p>mdbook-quiz is a tool for embedding interactive quizzes into your mdBook. Here's an example you can try out:</p>
<div class="quiz-placeholder" data-quiz-name="quiz-example" data-quiz-questions="{&quot;questions&quot;:[{&quot;context&quot;:&quot;Immutable means \&quot;not mutable\&quot;, or not changeable.\n&quot;,&quot;id&quot;:&quot;18ea4c61-c7c3-433f-add5-d3d3156e3e71&quot;,&quot;type&quot;:&quot;MultipleChoice&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;`x` cannot be changed after being assigned to a value.&quot;},&quot;prompt&quot;:{&quot;distractors&quot;:[&quot;`x` is stored in the immutable region of memory.&quot;,&quot;After being defined, `x` can be changed at most once.&quot;,&quot;You cannot create a reference to `x`.&quot;],&quot;prompt&quot;:&quot;What does it mean if a variable `x` is immutable?\n&quot;}},{&quot;context&quot;:&quot;For example, you can make a mutable variable `x` by writing: `let mut x = 1`.\n&quot;,&quot;id&quot;:&quot;dbbaea6a-f469-464f-9d60-99ae98456b6a&quot;,&quot;type&quot;:&quot;ShortAnswer&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;mut&quot;},&quot;prompt&quot;:{&quot;prompt&quot;:&quot;What is the keyword used after `let` to indicate that a variable can be mutated?&quot;}},{&quot;context&quot;:&quot;This is a compiler error because line 4 tries to mutate `x` when `x` is not marked as `mut`.\n&quot;,&quot;id&quot;:&quot;bba6a299-b20f-4685-934a-792a591df3c0&quot;,&quot;type&quot;:&quot;Tracing&quot;,&quot;answer&quot;:{&quot;doesCompile&quot;:false,&quot;lineNumber&quot;:4},&quot;prompt&quot;:{&quot;program&quot;:&quot;fn main() {\n let x = 1;\n println!(\&quot;{x}\&quot;);\n x += 1;\n println!(\&quot;{x}\&quot;);\n}\n&quot;}}]}" data-quiz-fullscreen="" ></div>
<div class="quiz-placeholder" data-quiz-name="quiz-example" data-quiz-questions="{&quot;questions&quot;:[{&quot;context&quot;:&quot;Immutable means \&quot;not mutable\&quot;, or not changeable.\n&quot;,&quot;id&quot;:&quot;18ea4c61-c7c3-433f-add5-d3d3156e3e71&quot;,&quot;type&quot;:&quot;MultipleChoice&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;`x` cannot be changed after being assigned to a value.&quot;},&quot;prompt&quot;:{&quot;distractors&quot;:[&quot;`x` is stored in the immutable region of memory.&quot;,&quot;After being defined, `x` can be changed at most once.&quot;,&quot;You cannot create a reference to `x`.&quot;],&quot;prompt&quot;:&quot;What does it mean if a variable `x` is immutable?\n&quot;}},{&quot;context&quot;:&quot;For example, you can make a mutable variable `x` by writing: `let mut x = 1`.\n&quot;,&quot;id&quot;:&quot;dbbaea6a-f469-464f-9d60-99ae98456b6a&quot;,&quot;type&quot;:&quot;ShortAnswer&quot;,&quot;answer&quot;:{&quot;answer&quot;:&quot;mut&quot;},&quot;prompt&quot;:{&quot;prompt&quot;:&quot;What is the keyword used after `let` to indicate that a variable can be mutated?&quot;}},{&quot;context&quot;:&quot;This is a compiler error because line 4 tries to mutate `x` when `x` is not marked as `mut`.\n&quot;,&quot;id&quot;:&quot;bba6a299-b20f-4685-934a-792a591df3c0&quot;,&quot;type&quot;:&quot;Tracing&quot;,&quot;answer&quot;:{&quot;doesCompile&quot;:false,&quot;lineNumber&quot;:4},&quot;prompt&quot;:{&quot;program&quot;:&quot;fn main() {\n let x = 1;\n println!(\&quot;{x}\&quot;);\n x += 1;\n println!(\&quot;{x}\&quot;);\n}\n&quot;}}]}" data-quiz-fullscreen="" data-quiz-show-bug-reporter="" ></div>
<p>For more documentation, go to <a href="https://github.com/cognitive-engineering-lab/mdbook-quiz">https://github.com/cognitive-engineering-lab/mdbook-quiz</a>.</p>
<script type="text/javascript" src="quiz/quiz-embed.iife.js"></script><link rel="stylesheet" type="text/css" href="quiz/style.css">
</main>
Expand Down
Loading

0 comments on commit d76607e

Please sign in to comment.