Skip to content

Commit

Permalink
Fix rendering issue w/ blockquote
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Sep 13, 2024
1 parent 580d442 commit 21cd98d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions js-extensions/packages/consent-form/lib/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ let ConsentForm = () => {
<h2>What is this?</h2>
<div className="row">
<p>
This website is an experiment by Brown University researchers{" "}
<a href="https://willcrichton.net/">Will Crichton</a>,{" "}
<a href="https://gavinleroy.com/">Gavin Gray</a>, and{" "}
<a href="https://cs.brown.edu/~sk/">Shriram Krishnamurthi</a>. The goal of this
experiment is to evaluate and improve the content of the Rust Book to help people
This website is an experiment by the <a href="https://cel.cs.brown.edu/">Cognitive Engineering Lab</a> at Brown University.{" "}
The goal of this experiment is to evaluate and improve the content of the Rust Book to help people
learn Rust more effectively.
</p>
<img src="img/experiment/brown-logo.png" width="150" />
Expand Down
2 changes: 1 addition & 1 deletion src/ch04-02-references-and-borrowing.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ println!("Vector is now {:?}", v);
#}
```

> <div style="margin-block-start: 1em; margin-block-end: 1em"><i>Note:</i> when the expected permissions are not strictly relevant to an example, we will abbreviate them as dots like <div class="permission-stack stack-size-2"><div class="perm read"><div class="small">•</div><div class="big">R</div></div><div class="perm write"><div class="small">•</div><div class="big">W</div></div></div>. You can hover your mouse over the circles (or tap on a touchscreen) to see the corresponding permission letters.</div>
<blockquote><div style="margin-block-start: 1em; margin-block-end: 1em"><i>Note:</i> when the expected permissions are not strictly relevant to an example, we will abbreviate them as dots like <div class="permission-stack stack-size-2"><div class="perm read"><div class="small">•</div><div class="big">R</div></div><div class="perm write"><div class="small">•</div><div class="big">W</div></div></div>. You can hover your mouse over the circles (or tap on a touchscreen) to see the corresponding permission letters.</div></blockquote>

A mutable reference is created with the `&mut` operator. The type of `num` is written as `&mut i32`. Compared to immutable references, you can see two important differences in the permissions:

Expand Down

0 comments on commit 21cd98d

Please sign in to comment.