Writing Gleam Tutorial Question: why I have to set format_pair
as pub fn
to make it work?
#2641
-
I'm fellowing the tutorial in Writing Gleam Learn to work with Gleam projects, everything goes well except that I have to define pub fn format_pair(name: String, value: String) -> String {
name <> "=" <> value
} If I define
ScreenshotMaybe I made some trivial mistakes, any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Answered by
lpil
Mar 5, 2024
Replies: 1 comment
-
Hello! That was a typo in the documentation, sorry about that. I have now fixed it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
shenxiangzhuang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! That was a typo in the documentation, sorry about that. I have now fixed it.