aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2023-04-29 14:36:35 +0100
committerLouis Pilfold <louis@lpil.uk>2023-04-29 14:36:35 +0100
commit15d571acf37ba0fc394766da598dc7fcf58d7dbd (patch)
tree9c2cbb786bbbd1062078f5c6553ddc64d7328945 /README.md
parent63d17f8a64634badf1855b55fd97cd75ecb03e09 (diff)
downloadgleam_stdlib-15d571acf37ba0fc394766da598dc7fcf58d7dbd.tar.gz
gleam_stdlib-15d571acf37ba0fc394766da598dc7fcf58d7dbd.zip
Simplify example
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 2 insertions, 8 deletions
diff --git a/README.md b/README.md
index 44481aa..05c68ca 100644
--- a/README.md
+++ b/README.md
@@ -21,15 +21,9 @@ Import the modules you want to use and write some code!
```gleam
import gleam/string
-import gleam/list.{contains}
-fn usage() {
- string.append("str", "ing")
-}
-
-fn more_usage() {
- [1, 2, 3]
- |> contains(any: 2)
+pub fn greet(name: String) -> String {
+ string.concat(["Hello ", name, "!"])
}
```