Skip to content

Commit 3ee986a

Browse files
committed
Error if two modules has the same name
Closes gleam-lang/gleam#117
1 parent 2c6031e commit 3ee986a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tuple.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test swap {
5050
pub fn fetch(haystack, needle) {
5151
list:find(haystack, fn(tuple) {
5252
case first(tuple) == needle {
53-
| True -> Ok(second(tuple))
53+
| True -> tuple |> second |> Ok
5454
| False -> Error([])
5555
}
5656
})

0 commit comments

Comments
 (0)