Skip to content

Commit 67e019b

Browse files
committed
PR suggestions
1 parent e1bca83 commit 67e019b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

build.roc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ run! : Result Str err => Result {} _
4141
run! = |maybe_roc|
4242

4343
# roc_cmd may be a path or just roc
44-
roc_cmd = maybe_roc |> Result.with_default("roc")
44+
roc_cmd = maybe_roc ?? "roc"
4545

4646
roc_version!(roc_cmd)?
4747

examples/hello-web.roc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Model : {}
99

1010
# With `init` you can set up a database connection once at server startup,
1111
# generate css by running `tailwindcss`,...
12-
# In this case we don't have anything to initialize, so it is just `Ok {}`.
12+
# In this case we don't have anything to initialize, so it is just `Ok({})`.
1313
init! : {} => Result Model []
1414
init! = |{}| Ok({})
1515

examples/init-basic.roc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Model : Str
99

1010
# With `init` you can set up a database connection once at server startup,
1111
# generate css by running `tailwindcss`,...
12-
# In this example it is just `Ok "🎁"`.
12+
# In this example it is just `Ok("🎁")`.
1313
init! : {} => Result Model []
1414
init! = |{}| Ok("🎁")
1515

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)