aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Bullard <anthony.bullard@gmail.com>2020-03-20 20:10:42 -0500
committerLouis Pilfold <louis@lpil.uk>2020-03-21 17:34:22 +0000
commit03ad6e4c7e11ca5556841c6ba43e2819690e8a11 (patch)
treea6f08636727cfcb6596c205568558895ec298b57
parent2379ccae323a920eeb2a7ed3df5f2a86280f02d0 (diff)
downloadgleam_stdlib-03ad6e4c7e11ca5556841c6ba43e2819690e8a11.tar.gz
gleam_stdlib-03ad6e4c7e11ca5556841c6ba43e2819690e8a11.zip
Add doc to gitignore
-rw-r--r--.gitignore1
-rw-r--r--src/gleam/string.gleam10
2 files changed, 6 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 40ca652..a7f3ff3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@ _build
.idea
*.iml
rebar3.crashdump
+doc
diff --git a/src/gleam/string.gleam b/src/gleam/string.gleam
index b4cfa69..b4f77de 100644
--- a/src/gleam/string.gleam
+++ b/src/gleam/string.gleam
@@ -18,7 +18,7 @@ import gleam/order
/// ## Examples
/// ```
/// > is_empty("") == True
-/// > isEmpty("the world") == False
+/// > is_empty("the world") == False
/// ```
///
pub fn is_empty(str: String) -> Bool {
@@ -132,14 +132,14 @@ pub external fn compare(String, String) -> order.Order =
/// Drop *n* characters from the left side of a
///
-/// > dropLeft(from: "The Lone Gunmen", num_characters: 2) == "e Lone Gunmen"
+/// > drop_left(from: "The Lone Gunmen", num_characters: 2) == "e Lone Gunmen"
///
// pub fn drop_left(from string: String, num_characters: Int) -> String {}
/// Drop *n* characters from the right side of a
///
-/// > dropRight("Cigarette Smoking Man", 2) == "Cigarette Smoking M"
+/// > drop_right("Cigarette Smoking Man", 2) == "Cigarette Smoking M"
///
// pub fn drop_right(from string: String, num_characters: Int) -> String {}
@@ -162,8 +162,8 @@ pub external fn compare(String, String) -> order.Order =
/// See if the second string starts with the first one.
///
-/// > startsWith("theory", this: "the") == True
-/// > startsWith("theory", this: "ory") == False
+/// > starts_with("theory", this: "the") == True
+/// > starts_with("theory", this: "ory") == False
///
// pub fn starts_with(this: String, in: String) -> String {}