Skip to content

Commit 6e5af0a

Browse files
committed
Fix Chalk book test.
1 parent 2943c77 commit 6e5af0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

book/src/glossary.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ There are sixteen logical connectives on two boolean variables. The most
77
interesting in this context are listed below. There is also a truth table given
88
which encodes the possible results of the operations like this
99

10-
```
10+
```notrust
1111
f(false, false) f(false, true) f(true, false) f(true, true).
1212
```
1313

@@ -50,15 +50,15 @@ the optional positive literal. Due to the equivalence `(P => Q) <=> (!P || Q)`
5050
the clause can be expressed as `B && C && ... => A` which means that A is true
5151
if `B`, `C`, etc. are all true. All rules in chalk are in this form. For example
5252

53-
```
53+
```notrust
5454
struct A<T> {}
5555
impl<T> B for A<T> where T: C + D {}
5656
```
5757

5858
is expressed as the *Horn clause* `(T: C) && (T: D) => (A<T>: B)`. This formula
5959
has to hold for all values of `T`. The second example
6060

61-
```
61+
```notrust
6262
struct A {}
6363
impl B for A {}
6464
impl C for A {}
@@ -149,7 +149,7 @@ syntactic rules.
149149
In the context of the Rust type system this means that basic rules for type
150150
construction have to be met. Two examples: 1) Given a struct definition
151151

152-
```rust
152+
```notrust
153153
struct HashSet<T: Hash>
154154
```
155155
then a type `HashSet<i32>` is well-formed since `i32` implements `Hash`. A type

0 commit comments

Comments
 (0)