Skip to content

Commit ee02372

Browse files
authored
Merge pull request souffle-lang#124 from mingodad/patch-1
Replace strings left/right double quotation by '"'
2 parents 4513424 + 21414c0 commit ee02372

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pages/docs/tutorial.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ The functor ``autoinc()`` issues a new number every time it is evaluated.
380380
However, it is not permitted in recursive relations. It can be used to create unique numbers (acting as identifiers) for symbols, such as in the following example:
381381
```prolog
382382
.decl A(x: symbol)
383-
A(“a”). A(“b”). A(“c”). A(“d”).
383+
A("a"). A("b"). A("c"). A("d").
384384
385385
.decl B(x: symbol, y: number)
386386
.output B
@@ -454,12 +454,12 @@ The syntax is ``count:{<sub-goal>}``.
454454
The following example outputs the number of "blue" cars - that is, the number of elements in ``Car`` with second argument "blue":
455455
```prolog
456456
.decl Car(name: symbol, colour:symbol)
457-
Car(Audi”, ”blue).
458-
Car(“VW”, “red).
459-
Car(BMW”, “blue).
457+
Car("Audi", "blue").
458+
Car("VW", "red").
459+
Car("BMW", "blue").
460460
461461
.decl BlueCarCount(x: number)
462-
BlueCarCount(c) :- c = count:{Car(_,blue)}.
462+
BlueCarCount(c) :- c = count:{Car(_,"blue")}.
463463
.output BlueCarCount
464464
```
465465

@@ -483,7 +483,7 @@ The ``min`` syntax is ``min <var>:{<sub-goal>(<var>)>}``, and the ``sum`` syntax
483483
Consider the following example which will not compile:
484484
```prolog
485485
.decl A(n:number, w:symbol)
486-
A(1, ”a”). A(10, ”b”). A(100, ”c”).
486+
A(1, "a"). A(10, "b"). A(100, "c").
487487
.decl MaxA(x: number,w:symbol)
488488
MaxA(y, w) :- y = max x:{A(x, w)}.
489489
```

0 commit comments

Comments
 (0)