Skip to content

Commit 15d571a

Browse files
committed
Simplify example
1 parent 63d17f8 commit 15d571a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,9 @@ Import the modules you want to use and write some code!
2121

2222
```gleam
2323
import gleam/string
24-
import gleam/list.{contains}
2524
26-
fn usage() {
27-
string.append("str", "ing")
28-
}
29-
30-
fn more_usage() {
31-
[1, 2, 3]
32-
|> contains(any: 2)
25+
pub fn greet(name: String) -> String {
26+
string.concat(["Hello ", name, "!"])
3327
}
3428
```
3529

0 commit comments

Comments
 (0)