Skip to content

Commit c74aa83

Browse files
Aggelos Biboudisnicolasstucki
Aggelos Biboudis
andauthored
Apply suggestions from code review
Co-Authored-By: Nicolas Stucki <[email protected]>
1 parent 78b0bab commit c74aa83

File tree

1 file changed

+5
-5
lines changed
  • library/src-bootstrapped/scala/quoted/util

1 file changed

+5
-5
lines changed

library/src-bootstrapped/scala/quoted/util/Var.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ object Var {
1717
/** Create a variable initialized with `init` and used in `body`.
1818
* `body` recieves a `Var[T]` argument which exposes `get` and `update`.
1919
*
20-
* Var('(7)) {
20+
* Var('{7}) {
2121
* x => '{
22-
* while(0 < $x.get)
23-
* $x.update('($x.get - 1))
24-
* $x.get
22+
* while(0 < ${x.get})
23+
* ${x.update('{${x.get} - 1})}
24+
* ${x.get}
2525
* }
2626
* }
2727
*
2828
* will create the equivalent of:
2929
*
30-
* {
30+
* '{
3131
* var x = 7
3232
* while (0 < x)
3333
* x = x - 1

0 commit comments

Comments
 (0)