mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Fix: typo in readme (#4942)
Co-authored-by: Usman Ali Siddiqui <usmanali.siddiqui@wsa.com> Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
committed by
GitHub
parent
5138c302bb
commit
892c241773
@@ -139,7 +139,7 @@ axios.get('/user?ID=12345')
|
|||||||
// handle error
|
// handle error
|
||||||
console.log(error);
|
console.log(error);
|
||||||
})
|
})
|
||||||
.then(function () {
|
.finally(function () {
|
||||||
// always executed
|
// always executed
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -155,7 +155,7 @@ axios.get('/user', {
|
|||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
})
|
})
|
||||||
.then(function () {
|
.finally(function () {
|
||||||
// always executed
|
// always executed
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user