Skip to content

Commit ec1cf2b

Browse files
authored
Merge pull request #1228 from lelloman/fix-official-doc-uris-ids-link
Fix official uris-ids docs outdated links
2 parents 87389a8 + ef1f35b commit ec1cf2b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/spotify_id.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl SpotifyId {
100100
///
101101
/// `src` is expected to be 32 bytes long and encoded using valid characters.
102102
///
103-
/// [Spotify ID]: https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids
103+
/// [Spotify ID]: https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids
104104
pub fn from_base16(src: &str) -> SpotifyIdResult {
105105
let mut dst: u128 = 0;
106106

@@ -125,7 +125,7 @@ impl SpotifyId {
125125
///
126126
/// `src` is expected to be 22 bytes long and encoded using valid characters.
127127
///
128-
/// [Spotify ID]: https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids
128+
/// [Spotify ID]: https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids
129129
pub fn from_base62(src: &str) -> SpotifyIdResult {
130130
let mut dst: u128 = 0;
131131

@@ -168,7 +168,7 @@ impl SpotifyId {
168168
/// Note that this should not be used for playlists, which have the form of
169169
/// `spotify:playlist:{id}`.
170170
///
171-
/// [Spotify URI]: https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids
171+
/// [Spotify URI]: https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids
172172
pub fn from_uri(src: &str) -> SpotifyIdResult {
173173
// Basic: `spotify:{type}:{id}`
174174
// Named: `spotify:user:{user}:{type}:{id}`
@@ -223,7 +223,7 @@ impl SpotifyId {
223223
/// Returns the `SpotifyId` as a [canonically] base62 encoded, `SpotifyId::SIZE_BASE62` (22)
224224
/// character long `String`.
225225
///
226-
/// [canonically]: https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids
226+
/// [canonically]: https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids
227227
#[allow(clippy::wrong_self_convention)]
228228
pub fn to_base62(&self) -> Result<String, Error> {
229229
let mut dst = [0u8; 22];
@@ -280,7 +280,7 @@ impl SpotifyId {
280280
/// If the `SpotifyId` has an associated type unrecognized by the library, `{type}` will
281281
/// be encoded as `unknown`.
282282
///
283-
/// [Spotify URI]: https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids
283+
/// [Spotify URI]: https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids
284284
#[allow(clippy::wrong_self_convention)]
285285
pub fn to_uri(&self) -> Result<String, Error> {
286286
// 8 chars for the "spotify:" prefix + 1 colon + 22 chars base62 encoded ID = 31

0 commit comments

Comments
 (0)