Skip to content

Commit 1d6f120

Browse files
authored
Merge pull request #848 from u5surf/issue-884
Fix comment Redirect::permanent
2 parents d10f73a + 12e6475 commit 1d6f120

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)