aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoshua Reusch <jreusch4@gmail.com>2024-08-13 21:39:15 +0200
committerLouis Pilfold <louis@lpil.uk>2024-08-14 11:26:26 +0200
commitfab4557cdbcd8405b4d255ff7ca845ee9a6f8085 (patch)
tree814663826d9d70b2e4345da9d2d3e4555b86b24d /src
parent328faaa4a6877b39df1201d662c1aabb78059cfa (diff)
downloadgleam_stdlib-fab4557cdbcd8405b4d255ff7ca845ee9a6f8085.tar.gz
gleam_stdlib-fab4557cdbcd8405b4d255ff7ca845ee9a6f8085.zip
fix percent_decode example #672
Diffstat (limited to 'src')
-rw-r--r--src/gleam/uri.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam/uri.gleam b/src/gleam/uri.gleam
index 508cfef..603b9f2 100644
--- a/src/gleam/uri.gleam
+++ b/src/gleam/uri.gleam
@@ -252,8 +252,8 @@ fn do_percent_encode(a: String) -> String
/// ## Examples
///
/// ```gleam
-/// percent_decode("100%25+great")
-/// // -> Ok("100% great")
+/// percent_decode("100%25%20great+fun")
+/// // -> Ok("100% great+fun")
/// ```
///
pub fn percent_decode(value: String) -> Result(String, Nil) {