Skip to content

Commit d752d0b

Browse files
diemogebhardtlpil
authored andcommitted
Refactor Uri module examples to use https
1 parent 42a89b9 commit d752d0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gleam/uri.gleam

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,9 @@ fn remove_dot_segments_loop(
636636
/// ## Examples
637637
///
638638
/// ```gleam
639-
/// let uri = Uri(..Uri.empty, scheme: Some("http"), host: Some("example.com"))
639+
/// let uri = Uri(..Uri.empty, scheme: Some("https"), host: Some("example.com"))
640640
/// to_string(uri)
641-
/// // -> "http://example.com"
641+
/// // -> "https://example.com"
642642
/// ```
643643
///
644644
pub fn to_string(uri: Uri) -> String {
@@ -680,9 +680,9 @@ pub fn to_string(uri: Uri) -> String {
680680
/// ## Examples
681681
///
682682
/// ```gleam
683-
/// let assert Ok(uri) = parse("http://example.com/path?foo#bar")
683+
/// let assert Ok(uri) = parse("https://example.com/path?foo#bar")
684684
/// origin(uri)
685-
/// // -> Ok("http://example.com")
685+
/// // -> Ok("https://example.com")
686686
/// ```
687687
///
688688
pub fn origin(uri: Uri) -> Result(String, Nil) {

0 commit comments

Comments
 (0)