Skip to content

Commit 12e6475

Browse files
committed
Fix comment Redirect::permanent
1 parent d10f73a commit 12e6475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redirect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl<T: AsRef<str>> Redirect<T> {
5656

5757
/// Creates an endpoint that represents a permanent redirect to `location`.
5858
///
59-
/// Uses status code 301 Permanent Redirect.
59+
/// Uses status code 308 Permanent Redirect.
6060
pub fn permanent(location: T) -> Self {
6161
Self {
6262
status: StatusCode::PermanentRedirect,

0 commit comments

Comments
 (0)