Skip to content

Commit 0630231

Browse files
authored
Merge pull request #221 from roc-lang/format-update
new format Result/main.roc
2 parents cb0b815 + a3df108 commit 0630231

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: examples/Results/main.roc

+5-5
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ parseWithTryOp = \line ->
6868
parseWithTryOpV2 = \line ->
6969
{ before: fullName, after: birthYearStr } =
7070
line
71-
|> Str.splitFirst " was born in "
72-
|> Result.mapErr? \_ -> Err InvalidRecordFormat
71+
|> Str.splitFirst " was born in "
72+
|> Result.mapErr? \_ -> Err InvalidRecordFormat
7373
{ before: firstName, after: lastName } =
7474
fullName
75-
|> Str.splitFirst " "
76-
|> Result.mapErr? \_ -> Err InvalidNameFormat
75+
|> Str.splitFirst " "
76+
|> Result.mapErr? \_ -> Err InvalidNameFormat
7777
birthYear =
7878
Str.toU16 birthYearStr
79-
|> Result.mapErr? \_ -> Err InvalidBirthYearFormat
79+
|> Result.mapErr? \_ -> Err InvalidBirthYearFormat
8080
Ok { firstName, lastName, birthYear }
8181

8282
## This function parses a string using a given parser and returns a string to

Diff for: flake.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)