Skip to content

Commit 0ebe035

Browse files
diemogebhardtlpil
authored andcommitted
Refactor Uri.to_string function example to use Uri.empty constant
1 parent 1bbf4c6 commit 0ebe035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gleam/uri.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ fn remove_dot_segments_loop(
647647
/// ## Examples
648648
///
649649
/// ```gleam
650-
/// let uri = Uri(Some("http"), None, Some("example.com"), ...)
650+
/// let uri = Uri(..Uri.empty, scheme: Some("http"), host: Some("example.com"))
651651
/// to_string(uri)
652652
/// // -> "http://example.com"
653653
/// ```

0 commit comments

Comments
 (0)