Skip to content

Commit 182be92

Browse files
authored
Fix dead links and wrong RFC number in UUIDs docstring/changelog (#57423)
* <https://www.ietf.org/rfc/rfc4122> is 404 Not Found * [RFC 9652](https://tools.ietf.org/html/rfc9652) is totally irrelevant to UUID Ref: #54834, #55215.
1 parent 88b292d commit 182be92

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ New library functions
9797
* The new `isfull(c::Channel)` function can be used to check if `put!(c, some_value)` will block ([#53159]).
9898
* `waitany(tasks; throw=false)` and `waitall(tasks; failfast=false, throw=false)` which wait for multiple tasks
9999
at once ([#53341]).
100-
* `uuid7()` creates an RFC 9652 compliant UUID with version 7 ([#54834]).
100+
* `uuid7()` creates an RFC 9562 compliant UUID with version 7 ([#54834]).
101101
* `insertdims(array; dims)` inserts singleton dimensions into an array --- the inverse operation of
102102
`dropdims` ([#45793]).
103103
* A new `Fix` type generalizes `Fix1/Fix2` for fixing a single argument ([#54653]).

stdlib/UUIDs/src/UUIDs.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Base: UUID
1818
uuid_version(u::UUID) -> Int
1919
2020
Inspects the given UUID and returns its version
21-
(see [RFC 4122](https://www.ietf.org/rfc/rfc4122)).
21+
(see [RFC 4122](https://tools.ietf.org/html/rfc4122)).
2222
2323
# Examples
2424
```jldoctest
@@ -39,7 +39,7 @@ const namespace_x500 = UUID(0x6ba7b8149dad11d180b400c04fd430c8) # 6ba7b814-9dad-
3939
uuid1([rng::AbstractRNG]) -> UUID
4040
4141
Generates a version 1 (time-based) universally unique identifier (UUID), as specified
42-
by [RFC 4122](https://www.ietf.org/rfc/rfc4122). Note that the Node ID is randomly generated (does not identify the host)
42+
by [RFC 4122](https://tools.ietf.org/html/rfc4122). Note that the Node ID is randomly generated (does not identify the host)
4343
according to section 4.5 of the RFC.
4444
4545
The default rng used by `uuid1` is not `Random.default_rng()` and every invocation of `uuid1()` without
@@ -92,7 +92,7 @@ end
9292
uuid4([rng::AbstractRNG]) -> UUID
9393
9494
Generates a version 4 (random or pseudo-random) universally unique identifier (UUID),
95-
as specified by [RFC 4122](https://www.ietf.org/rfc/rfc4122).
95+
as specified by [RFC 4122](https://tools.ietf.org/html/rfc4122).
9696
9797
The default rng used by `uuid4` is not `Random.default_rng()` and every invocation of `uuid4()` without
9898
an argument should be expected to return a unique identifier. Importantly, the outputs of
@@ -124,7 +124,7 @@ end
124124
uuid5(ns::UUID, name::String) -> UUID
125125
126126
Generates a version 5 (namespace and domain-based) universally unique identifier (UUID),
127-
as specified by RFC 4122.
127+
as specified by [RFC 4122](https://tools.ietf.org/html/rfc4122).
128128
129129
!!! compat "Julia 1.1"
130130
This function requires at least Julia 1.1.
@@ -165,7 +165,7 @@ end
165165
uuid7([rng::AbstractRNG]) -> UUID
166166
167167
Generates a version 7 (random or pseudo-random) universally unique identifier (UUID),
168-
as specified by [RFC 9652](https://www.rfc-editor.org/rfc/rfc9562).
168+
as specified by [RFC 9562](https://tools.ietf.org/html/rfc9562).
169169
170170
The default rng used by `uuid7` is not `Random.default_rng()` and every invocation of `uuid7()` without
171171
an argument should be expected to return a unique identifier. Importantly, the outputs of

0 commit comments

Comments
 (0)