From 95a76958104d916e5dc79637c935ef75a77e016f Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 9 Oct 2024 03:50:35 +0800 Subject: [PATCH] documentation and comments use HTTPS when possible (#24264) --- compiler/extccomp.nim | 4 ++-- copying.txt | 2 +- doc/backends.md | 2 +- doc/docgen.md | 2 +- doc/hcr.md | 2 +- doc/nep1.md | 2 +- doc/nimc.md | 2 +- doc/niminst.md | 2 +- doc/regexprs.txt | 2 +- lib/experimental/diff.nim | 4 ++-- lib/impure/nre.nim | 8 ++++---- lib/impure/re.nim | 2 +- lib/nimbase.h | 2 +- lib/packages/docutils/rst.nim | 2 +- lib/packages/docutils/rstgen.nim | 2 +- lib/posix/posix.nim | 2 +- lib/posix/posix_haiku.nim | 2 +- lib/posix/posix_macos_amd64.nim | 2 +- lib/posix/posix_openbsd_amd64.nim | 2 +- lib/posix/posix_other.nim | 2 +- lib/pure/algorithm.nim | 2 +- lib/pure/asyncdispatch.nim | 6 +++--- lib/pure/asyncfile.nim | 2 +- lib/pure/asyncnet.nim | 2 +- lib/pure/collections/sets.nim | 4 ++-- lib/pure/httpcore.nim | 2 +- lib/pure/nativesockets.nim | 2 +- lib/pure/net.nim | 2 +- lib/pure/os.nim | 2 +- lib/pure/osproc.nim | 2 +- lib/pure/random.nim | 4 ++-- lib/pure/times.nim | 4 ++-- lib/pure/uri.nim | 2 +- lib/pure/xmltree.nim | 4 ++-- lib/std/cmdline.nim | 2 +- lib/std/packedsets.nim | 2 +- lib/std/private/win_setenv.nim | 2 +- lib/system/dyncalls.nim | 2 +- lib/system/strmantle.nim | 2 +- 39 files changed, 50 insertions(+), 50 deletions(-) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index ce25da7738..c68da65a97 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -63,7 +63,7 @@ type # Configuration settings for various compilers. # When adding new compilers, the cmake sources could be a good reference: -# http://cmake.org/gitweb?p=cmake.git;a=tree;f=Modules/Platform; +# https://cmake.org/gitweb?p=cmake.git;a=tree;f=Modules/Platform; template compiler(name, settings: untyped): untyped = proc name: TInfoCC {.compileTime.} = settings @@ -777,7 +777,7 @@ proc getLinkCmd(conf: ConfigRef; output: AbsoluteFile, # https://blog.molecular-matters.com/2017/05/09/deleting-pdb-files-locked-by-visual-studio/ # and a bit about the .pdb format in case that is ever needed: # https://github.com/crosire/blink - # http://www.debuginfo.com/articles/debuginfomatch.html#pdbfiles + # https://www.debuginfo.com/articles/debuginfomatch.html#pdbfiles if conf.hcrOn and isVSCompatible(conf): let t = now() let pdb = output.string & "." & format(t, "MMMM-yyyy-HH-mm-") & $t.nanosecond & ".pdb" diff --git a/copying.txt b/copying.txt index 819330be30..6707dad448 100644 --- a/copying.txt +++ b/copying.txt @@ -21,4 +21,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -[ MIT license: http://www.opensource.org/licenses/mit-license.php ] +[ MIT license: https://www.opensource.org/licenses/mit-license.php ] diff --git a/doc/backends.md b/doc/backends.md index 91f8294924..6751703430 100644 --- a/doc/backends.md +++ b/doc/backends.md @@ -31,7 +31,7 @@ Objective-C targets and the JavaScript target. [The C like targets]( into a library or a final executable. [The JavaScript target]( #backends-the-javascript-target) can generate a ``.js`` file which you reference from an HTML file or create a [standalone Node.js program]( -http://nodejs.org). +https://nodejs.org). On top of generating libraries or standalone applications, Nim offers bidirectional interfacing with the backend targets through generic and diff --git a/doc/docgen.md b/doc/docgen.md index 3cc75fc180..34023f1eb8 100644 --- a/doc/docgen.md +++ b/doc/docgen.md @@ -67,7 +67,7 @@ Documentation Comments Any comments which are preceded by a double-hash (`##`), are interpreted as documentation. Comments are parsed as RST (see [reference]( -http://docutils.sourceforge.net/docs/user/rst/quickref.html)), providing +https://docutils.sourceforge.net/docs/user/rst/quickref.html)), providing Nim module authors the ability to easily generate richly formatted documentation with only their well-documented code! Basic Markdown syntax is also supported inside the doc comments. diff --git a/doc/hcr.md b/doc/hcr.md index 285a862821..a161950b6e 100644 --- a/doc/hcr.md +++ b/doc/hcr.md @@ -241,5 +241,5 @@ JavaScript target ================= Once your code is compiled for hot reloading, a convenient solution for implementing the actual reloading -in the browser using a framework such as [LiveReload](http://livereload.com/) +in the browser using a framework such as [LiveReload](https://livereload.com/) or [BrowserSync](https://browsersync.io/). diff --git a/doc/nep1.md b/doc/nep1.md index 3d2a0cef3e..fd11dbf821 100644 --- a/doc/nep1.md +++ b/doc/nep1.md @@ -21,7 +21,7 @@ library should follow. Note that there can be exceptions to these rules. Nim being as flexible as it is, there will be parts of this style guide that don't make sense in certain contexts. Furthermore, just as -[Python's style guide](http://legacy.python.org/dev/peps/pep-0008/) changes +[Python's style guide](https://legacy.python.org/dev/peps/pep-0008/) changes over time, this style guide will too. These rules will only be enforced for contributions to the Nim diff --git a/doc/nimc.md b/doc/nimc.md index 38558454bc..1bc3edc4cf 100644 --- a/doc/nimc.md +++ b/doc/nimc.md @@ -24,7 +24,7 @@ on the different supported platforms. It is not a definition of the Nim programming language (which is covered in the [manual](manual.html)). Nim is free software; it is licensed under the -[MIT License](http://www.opensource.org/licenses/mit-license.php). +[MIT License](https://www.opensource.org/licenses/mit-license.php). Compiler Usage diff --git a/doc/niminst.md b/doc/niminst.md index cc399c57a3..b532b33c5e 100644 --- a/doc/niminst.md +++ b/doc/niminst.md @@ -14,7 +14,7 @@ Introduction niminst is a tool to generate an installer for a Nim program. Currently it can create an installer for Windows -via [Inno Setup](http://www.jrsoftware.org/isinfo.php) as well as +via [Inno Setup](https://www.jrsoftware.org/isinfo.php) as well as installation/deinstallation scripts for UNIX. Later versions will support Linux' package management systems. diff --git a/doc/regexprs.txt b/doc/regexprs.txt index fa7f9d24ab..16e5206135 100644 --- a/doc/regexprs.txt +++ b/doc/regexprs.txt @@ -41,7 +41,7 @@ Regular expression syntax and semantics ======================================= As the regular expressions supported by this module are enormous, -the reader is referred to http://perldoc.perl.org/perlre.html for the +the reader is referred to https://perldoc.perl.org/perlre.html for the full documentation of Perl's regular expressions. Because the backslash ``\`` is a meta character both in the Nim diff --git a/lib/experimental/diff.nim b/lib/experimental/diff.nim index 669e9f613f..155cf7e7c0 100644 --- a/lib/experimental/diff.nim +++ b/lib/experimental/diff.nim @@ -10,7 +10,7 @@ ## This module implements an algorithm to compute the ## `diff`:idx: between two sequences of lines. ## -## - To learn more see `Diff on Wikipedia. `_ +## - To learn more see `Diff on Wikipedia. `_ runnableExamples: assert diffInt( @@ -37,7 +37,7 @@ jkl""" # code owner: Arne Döring # -# This is based on C# code written by Matthias Hertel, http://www.mathertel.de +# This is based on C# code written by Matthias Hertel, https://www.mathertel.de # # This Class implements the Difference Algorithm published in # "An O(ND) Difference Algorithm and its Variations" by Eugene Myers diff --git a/lib/impure/nre.nim b/lib/impure/nre.nim index 39d238055d..2321dc987b 100644 --- a/lib/impure/nre.nim +++ b/lib/impure/nre.nim @@ -37,7 +37,7 @@ runnableExamples: ## PCRE has `some additional terms`_ that you must agree to in order to use ## this module. ## -## .. _`some additional terms`: http://pcre.sourceforge.net/license.txt +## .. _`some additional terms`: https://pcre.sourceforge.net/license.txt runnableExamples: import std/sugar let vowels = re"[aeoui]" @@ -134,11 +134,11 @@ type ## - `(*NO_STUDY)` - turn off studying; study is enabled by default ## ## For more details on the leading option groups, see the `Option - ## Setting `_ + ## Setting `_ ## and the `Newline - ## Convention `_ + ## Convention `_ ## sections of the `PCRE syntax - ## manual `_. + ## manual `_. ## ## Some of these options are not part of PCRE and are converted by nre ## into PCRE flags. These include `NEVER_UTF`, `ANCHORED`, diff --git a/lib/impure/re.nim b/lib/impure/re.nim index 053c6ab555..b686c1f35a 100644 --- a/lib/impure/re.nim +++ b/lib/impure/re.nim @@ -13,7 +13,7 @@ when defined(js): ## Regular expression support for Nim. ## ## This module is implemented by providing a wrapper around the -## `PCRE (Perl-Compatible Regular Expressions) `_ +## `PCRE (Perl-Compatible Regular Expressions) `_ ## C library. This means that your application will depend on the PCRE ## library's licence when using this module, which should not be a problem ## though. diff --git a/lib/nimbase.h b/lib/nimbase.h index cf0c8002b5..258bf8862f 100644 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -110,7 +110,7 @@ __EMSCRIPTEN__ /* NIM_THREADVAR declaration based on - http://stackoverflow.com/questions/18298280/how-to-declare-a-variable-as-thread-local-portably + https://stackoverflow.com/questions/18298280/how-to-declare-a-variable-as-thread-local-portably */ #if defined _WIN32 # if defined _MSC_VER || defined __BORLANDC__ diff --git a/lib/packages/docutils/rst.nim b/lib/packages/docutils/rst.nim index 706c506893..3b801a3c1b 100644 --- a/lib/packages/docutils/rst.nim +++ b/lib/packages/docutils/rst.nim @@ -3364,7 +3364,7 @@ proc dirCodeBlock(p: var RstParser, nimExtension = false): PRstNode = ## description of ``parseDirective`` for further structure information. ## ## Code blocks can come in two forms, the standard `code directive - ## `_ and + ## `_ and ## the nim extension ``.. code-block::``. If the block is an extension, we ## want the default language syntax highlighting to be Nim, so we create a ## fake internal field to communicate with the generator. The field is named diff --git a/lib/packages/docutils/rstgen.nim b/lib/packages/docutils/rstgen.nim index 7fc0ac03a8..36717145ab 100644 --- a/lib/packages/docutils/rstgen.nim +++ b/lib/packages/docutils/rstgen.nim @@ -8,7 +8,7 @@ # ## This module implements a generator of HTML/Latex from -## `reStructuredText`:idx: (see http://docutils.sourceforge.net/rst.html for +## `reStructuredText`:idx: (see https://docutils.sourceforge.net/rst.html for ## information on this markup syntax) and is used by the compiler's `docgen ## tools `_. ## diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index fbe945df33..d85c84a486 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -1133,7 +1133,7 @@ proc utimes*(path: cstring, times: ptr array[2, Timeval]): int {. ## ## Returns zero on success. ## - ## For more information read http://www.unix.com/man-page/posix/3/utimes/. + ## For more information read https://www.unix.com/man-page/posix/3/utimes/. proc handle_signal(sig: cint, handler: proc (a: cint) {.noconv.}) {.importc: "signal", header: "".} diff --git a/lib/posix/posix_haiku.nim b/lib/posix/posix_haiku.nim index 32a6d24e26..ba579778fa 100644 --- a/lib/posix/posix_haiku.nim +++ b/lib/posix/posix_haiku.nim @@ -372,7 +372,7 @@ elif defined(haiku): # from sys/un.h const Sockaddr_un_path_length* = 126 else: - # according to http://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/un.h.html + # according to https://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/un.h.html # this is >=92 const Sockaddr_un_path_length* = 92 diff --git a/lib/posix/posix_macos_amd64.nim b/lib/posix/posix_macos_amd64.nim index a4b64ed622..59c4c65509 100644 --- a/lib/posix/posix_macos_amd64.nim +++ b/lib/posix/posix_macos_amd64.nim @@ -386,7 +386,7 @@ when defined(linux): # from sys/un.h const Sockaddr_un_path_length* = 108 else: - # according to http://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/un.h.html + # according to https://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/un.h.html # this is >=92 const Sockaddr_un_path_length* = 92 diff --git a/lib/posix/posix_openbsd_amd64.nim b/lib/posix/posix_openbsd_amd64.nim index 184cd89c07..555980ed78 100644 --- a/lib/posix/posix_openbsd_amd64.nim +++ b/lib/posix/posix_openbsd_amd64.nim @@ -370,7 +370,7 @@ when hasSpawnH: Tposix_spawn_file_actions* {.importc: "posix_spawn_file_actions_t", header: "", final, pure.} = object -# according to http://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/un.h.html +# according to https://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/un.h.html # this is >=92 const Sockaddr_un_path_length* = 92 diff --git a/lib/posix/posix_other.nim b/lib/posix/posix_other.nim index ea8731405d..9804ab0ba6 100644 --- a/lib/posix/posix_other.nim +++ b/lib/posix/posix_other.nim @@ -418,7 +418,7 @@ elif defined(freertos) or defined(lwip): const Sockaddr_un_path_length* = 108 else: const Sockaddr_max_length* = 255 - # according to http://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/un.h.html + # according to https://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/un.h.html # this is >=92 const Sockaddr_un_path_length* = 92 diff --git a/lib/pure/algorithm.nim b/lib/pure/algorithm.nim index b12ed7cddb..143ac68444 100644 --- a/lib/pure/algorithm.nim +++ b/lib/pure/algorithm.nim @@ -757,7 +757,7 @@ proc prevPermutation*[T](x: var openArray[T]): bool {.discardable.} = proc rotateInternal[T](arg: var openArray[T]; first, middle, last: int): int = ## A port of std::rotate from C++. - ## Ported from [this reference](http://www.cplusplus.com/reference/algorithm/rotate/). + ## Ported from [this reference](https://www.cplusplus.com/reference/algorithm/rotate/). result = first + last - middle if first == middle or middle == last: diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim index 126db7a7f2..b7ace0b3e3 100644 --- a/lib/pure/asyncdispatch.nim +++ b/lib/pure/asyncdispatch.nim @@ -417,8 +417,8 @@ when defined(windows) or defined(nimdoc): # We do not have to 'GC_unref(customOverlapped)' because the destructor # does that for us. - # http://stackoverflow.com/a/12277264/492186 - # TODO: http://www.serverframework.com/handling-multiple-pending-socket-read-and-write-operations.html + # https://stackoverflow.com/a/12277264/492186 + # TODO: https://www.serverframework.com/handling-multiple-pending-socket-read-and-write-operations.html if res: # This is useful for ensuring the reliability of the overlapped struct. assert customOverlapped.data.fd == lpCompletionKey.AsyncFD @@ -845,7 +845,7 @@ when defined(windows) or defined(nimdoc): failAccept(errcode) ) - # http://msdn.microsoft.com/en-us/library/windows/desktop/ms737524%28v=vs.85%29.aspx + # https://msdn.microsoft.com/en-us/library/windows/desktop/ms737524%28v=vs.85%29.aspx let ret = acceptEx(socket.SocketHandle, clientSock, addr lpOutputBuf[0], dwReceiveDataLength, dwLocalAddressLength, diff --git a/lib/pure/asyncfile.nim b/lib/pure/asyncfile.nim index 0f65043420..3825904781 100644 --- a/lib/pure/asyncfile.nim +++ b/lib/pure/asyncfile.nim @@ -354,7 +354,7 @@ proc writeBuffer*(f: AsyncFile, buf: pointer, size: int): Future[void] = ) # passing -1 here should work according to MSDN, but doesn't. For more # information see - # http://stackoverflow.com/questions/33650899/does-asynchronous-file- + # https://stackoverflow.com/questions/33650899/does-asynchronous-file- # appending-in-windows-preserve-order ol.offset = DWORD(f.offset and 0xffffffff) ol.offsetHigh = DWORD(f.offset shr 32) diff --git a/lib/pure/asyncnet.nim b/lib/pure/asyncnet.nim index ee07e599e7..ed787ad214 100644 --- a/lib/pure/asyncnet.nim +++ b/lib/pure/asyncnet.nim @@ -26,7 +26,7 @@ ## Each builds on top of the layers below it. The selectors module is an ## abstraction for the various system `select()` mechanisms such as epoll or ## kqueue. If you wish you can use it directly, and some people have done so -## `successfully `_. +## `successfully `_. ## But you must be aware that on Windows it only supports ## `select()`. ## diff --git a/lib/pure/collections/sets.nim b/lib/pure/collections/sets.nim index af13135aab..a5963ae494 100644 --- a/lib/pure/collections/sets.nim +++ b/lib/pure/collections/sets.nim @@ -187,7 +187,7 @@ proc card*[A](s: HashSet[A]): int = ## Alias for `len() <#len,HashSet[A]>`_. ## ## Card stands for the `cardinality - ## `_ of a set. + ## `_ of a set. result = s.counter proc incl*[A](s: var HashSet[A], key: A) = @@ -840,7 +840,7 @@ proc card*[A](s: OrderedSet[A]): int {.inline.} = ## Alias for `len() <#len,OrderedSet[A]>`_. ## ## Card stands for the `cardinality - ## `_ of a set. + ## `_ of a set. result = s.counter proc `==`*[A](s, t: OrderedSet[A]): bool = diff --git a/lib/pure/httpcore.nim b/lib/pure/httpcore.nim index 5ccab379c9..affb4d0b14 100644 --- a/lib/pure/httpcore.nim +++ b/lib/pure/httpcore.nim @@ -22,7 +22,7 @@ type HttpHeaderValues* = distinct seq[string] # The range starts at '0' so that we don't have to explicitly initialise - # it. See: http://irclogs.nim-lang.org/19-09-2016.html#19:48:27 for context. + # it. See: https://irclogs.nim-lang.org/19-09-2016.html#19:48:27 for context. HttpCode* = distinct range[0 .. 599] HttpVersion* = enum diff --git a/lib/pure/nativesockets.nim b/lib/pure/nativesockets.nim index 656c98a20c..c3608eb12a 100644 --- a/lib/pure/nativesockets.nim +++ b/lib/pure/nativesockets.nim @@ -230,7 +230,7 @@ proc close*(socket: SocketHandle) = else: discard posix.close(socket) # TODO: These values should not be discarded. An OSError should be raised. - # http://stackoverflow.com/questions/12463473/what-happens-if-you-call-close-on-a-bsd-socket-multiple-times + # https://stackoverflow.com/questions/12463473/what-happens-if-you-call-close-on-a-bsd-socket-multiple-times when declared(setInheritable) or defined(nimdoc): proc setInheritable*(s: SocketHandle, inheritable: bool): bool {.inline.} = diff --git a/lib/pure/net.nim b/lib/pure/net.nim index 24c94b651c..8ca1ab8259 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -598,7 +598,7 @@ when defineSsl: ctx.referencedData.incl(index) GC_ref(data) - # http://simplestcodings.blogspot.co.uk/2010/08/secure-server-client-using-openssl-in-c.html + # https://simplestcodings.blogspot.co.uk/2010/08/secure-server-client-using-openssl-in-c.html proc loadCertificates(ctx: SslCtx, certFile, keyFile: string) = if certFile != "" and not fileExists(certFile): raise newException(system.IOError, diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 78ebb1c88a..e1cc2d7230 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -142,7 +142,7 @@ proc quoteShellWindows*(s: string): string {.noSideEffect, rtl, extern: "nosp$1" ## Quote `s`, so it can be safely passed to Windows API. ## ## Based on Python's `subprocess.list2cmdline`. - ## See `this link `_ + ## See `this link `_ ## for more details. let needQuote = {' ', '\t'} in s or s.len == 0 result = "" diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index c304ecca64..340f345bca 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -157,7 +157,7 @@ proc close*(p: Process) {.rtl, extern: "nosp$1", raises: [IOError, OSError], tag ## ## .. warning:: If the process has not finished executing, this will forcibly ## terminate the process. Doing so may result in zombie processes and - ## `pty leaks `_. + ## `pty leaks `_. proc suspend*(p: Process) {.rtl, extern: "nosp$1", tags: [].} ## Suspends the process `p`. diff --git a/lib/pure/random.nim b/lib/pure/random.nim index 3ec77d37ee..0ff5878a5c 100644 --- a/lib/pure/random.nim +++ b/lib/pure/random.nim @@ -11,8 +11,8 @@ ## ## Its implementation is based on the `xoroshiro128+` ## (xor/rotate/shift/rotate) library. -## * More information: http://xoroshiro.di.unimi.it -## * C implementation: http://xoroshiro.di.unimi.it/xoroshiro128plus.c +## * More information: https://xoroshiro.di.unimi.it +## * C implementation: https://xoroshiro.di.unimi.it/xoroshiro128plus.c ## ## **Do not use this module for cryptographic purposes!** ## diff --git a/lib/pure/times.nim b/lib/pure/times.nim index e591534559..1d498e8739 100644 --- a/lib/pure/times.nim +++ b/lib/pure/times.nim @@ -484,7 +484,7 @@ proc toEpochDay(monthday: MonthdayRange, month: Month, year: int): int64 = ## Get the epoch day from a year/month/day date. ## The epoch day is the number of days since 1970/01/01 ## (it might be negative). - # Based on http://howardhinnant.github.io/date_algorithms.html + # Based on https://howardhinnant.github.io/date_algorithms.html assertValidDate monthday, month, year var (y, m, d) = (year, ord(month), monthday.int) if m <= 2: @@ -501,7 +501,7 @@ proc fromEpochDay(epochday: int64): ## Get the year/month/day date from a epoch day. ## The epoch day is the number of days since 1970/01/01 ## (it might be negative). - # Based on http://howardhinnant.github.io/date_algorithms.html + # Based on https://howardhinnant.github.io/date_algorithms.html var z = epochday z.inc 719468 let era = (if z >= 0: z else: z - 146096) div 146097 diff --git a/lib/pure/uri.nim b/lib/pure/uri.nim index 725d5bbd95..23dc6c4864 100644 --- a/lib/pure/uri.nim +++ b/lib/pure/uri.nim @@ -382,7 +382,7 @@ func combine*(base: Uri, reference: Uri): Uri = ## Combines a base URI with a reference URI. ## ## This uses the algorithm specified in - ## `section 5.2.2 of RFC 3986 `_. + ## `section 5.2.2 of RFC 3986 `_. ## ## This means that the slashes inside the base URIs path as well as reference ## URIs path affect the resulting URI. diff --git a/lib/pure/xmltree.nim b/lib/pure/xmltree.nim index 5c0cbc5e43..6a754f9a37 100644 --- a/lib/pure/xmltree.nim +++ b/lib/pure/xmltree.nim @@ -936,11 +936,11 @@ macro `<>`*(x: untyped): untyped = ## Constructor macro for XML. Example usage: ## ## ```nim - ## <>a(href="http://nim-lang.org", newText("Nim rules.")) + ## <>a(href="https://nim-lang.org", newText("Nim rules.")) ## ``` ## ## Produces an XML tree for: ## - ## Nim rules. + ## Nim rules. ## result = xmlConstructor(x) diff --git a/lib/std/cmdline.nim b/lib/std/cmdline.nim index 0ba4619e53..dcf6e0f4ac 100644 --- a/lib/std/cmdline.nim +++ b/lib/std/cmdline.nim @@ -51,7 +51,7 @@ proc parseCmdLine*(c: string): seq[string] {. ## `parseopt module `_. ## ## On Windows, it uses the `following parsing rules - ## `_: + ## `_: ## ## * Arguments are delimited by white space, which is either a space or a tab. ## * The caret character (^) is not recognized as an escape character or diff --git a/lib/std/packedsets.nim b/lib/std/packedsets.nim index 3320558f2a..b60250e4d5 100644 --- a/lib/std/packedsets.nim +++ b/lib/std/packedsets.nim @@ -545,7 +545,7 @@ proc disjoint*[A](s1, s2: PackedSet[A]): bool = proc card*[A](s: PackedSet[A]): int {.inline.} = ## Alias for `len() <#len,PackedSet[A]>`_. ## - ## Card stands for the [cardinality](http://en.wikipedia.org/wiki/Cardinality) + ## Card stands for the [cardinality](https://en.wikipedia.org/wiki/Cardinality) ## of a set. result = s.len() diff --git a/lib/std/private/win_setenv.nim b/lib/std/private/win_setenv.nim index 66e199dfec..b8d95c0063 100644 --- a/lib/std/private/win_setenv.nim +++ b/lib/std/private/win_setenv.nim @@ -3,7 +3,7 @@ Copyright (c) Facebook, Inc. and its affiliates. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/lib/system/dyncalls.nim b/lib/system/dyncalls.nim index 2162b234ff..817f7d8a5f 100644 --- a/lib/system/dyncalls.nim +++ b/lib/system/dyncalls.nim @@ -59,7 +59,7 @@ proc procAddrError(name: cstring) {.compilerproc, nonReloadable, hcrInline.} = # this code was inspired from Lua's source code: # Lua - An Extensible Extension Language # Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil -# http://www.lua.org +# https://www.lua.org # mailto:info@lua.org when defined(posix): diff --git a/lib/system/strmantle.nim b/lib/system/strmantle.nim index 89046253bb..c3e48c14c5 100644 --- a/lib/system/strmantle.nim +++ b/lib/system/strmantle.nim @@ -94,7 +94,7 @@ proc nimParseBiggestFloat(s: openArray[char], number: var BiggestFloat, # these restrictions, transform the float into this form: # INTEGER * 10 ^ exponent and leave the work to standard `strtod()`. # This avoid the problems of decimal character portability. - # see: http://www.exploringbinary.com/fast-path-decimal-to-floating-point-conversion/ + # see: https://www.exploringbinary.com/fast-path-decimal-to-floating-point-conversion/ var i = 0 sign = 1.0