@@ -1552,7 +1552,7 @@ mod _io {
15521552 }
15531553 let flush_res = data. flush ( vm) ;
15541554 let close_res = vm. call_method ( data. raw . as_ref ( ) . unwrap ( ) , "close" , ( ) ) ;
1555- exeption_chain ( flush_res, close_res)
1555+ exception_chain ( flush_res, close_res)
15561556 }
15571557
15581558 #[ pymethod]
@@ -1568,7 +1568,7 @@ mod _io {
15681568 let data = zelf. lock ( vm) ?;
15691569 let raw = data. raw . as_ref ( ) . unwrap ( ) ;
15701570 let close_res = vm. call_method ( raw, "close" , ( ) ) ;
1571- exeption_chain ( flush_res, close_res)
1571+ exception_chain ( flush_res, close_res)
15721572 }
15731573
15741574 #[ pymethod]
@@ -1657,7 +1657,7 @@ mod _io {
16571657 }
16581658 }
16591659
1660- fn exeption_chain < T > ( e1 : PyResult < ( ) > , e2 : PyResult < T > ) -> PyResult < T > {
1660+ fn exception_chain < T > ( e1 : PyResult < ( ) > , e2 : PyResult < T > ) -> PyResult < T > {
16611661 match ( e1, e2) {
16621662 ( Err ( e1) , Err ( e) ) => {
16631663 e. set_context ( Some ( e1) ) ;
@@ -1858,7 +1858,7 @@ mod _io {
18581858 fn close ( & self , vm : & VirtualMachine ) -> PyResult {
18591859 let write_res = self . write . close_strict ( vm) . map ( drop) ;
18601860 let read_res = self . read . close_strict ( vm) ;
1861- exeption_chain ( write_res, read_res)
1861+ exception_chain ( write_res, read_res)
18621862 }
18631863 }
18641864
@@ -2897,7 +2897,7 @@ mod _io {
28972897 }
28982898 let flush_res = vm. call_method ( zelf. as_object ( ) , "flush" , ( ) ) . map ( drop) ;
28992899 let close_res = vm. call_method ( & buffer, "close" , ( ) ) . map ( drop) ;
2900- exeption_chain ( flush_res, close_res)
2900+ exception_chain ( flush_res, close_res)
29012901 }
29022902 #[ pygetset]
29032903 fn closed ( & self , vm : & VirtualMachine ) -> PyResult {
0 commit comments