@@ -36,7 +36,7 @@ pub struct PyMemoryViewNewArgs {
3636pub struct PyMemoryView {
3737 // avoid double release when memoryview had released the buffer before drop
3838 buffer : ManuallyDrop < PyBuffer > ,
39- // the released memoryview does not mean the buffer is destoryed
39+ // the released memoryview does not mean the buffer is destroyed
4040 // because the possible another memeoryview is viewing from it
4141 released : AtomicCell < bool > ,
4242 // start does NOT mean the bytes before start will not be visited,
@@ -67,7 +67,7 @@ impl PyMemoryView {
6767 FormatSpec :: parse ( format. as_bytes ( ) , vm)
6868 }
6969
70- /// this should be the main entrence to create the memoryview
70+ /// this should be the main entrance to create the memoryview
7171 /// to avoid the chained memoryview
7272 pub fn from_object ( obj : & PyObject , vm : & VirtualMachine ) -> PyResult < Self > {
7373 if let Some ( other) = obj. payload :: < Self > ( ) {
@@ -78,7 +78,7 @@ impl PyMemoryView {
7878 }
7979 }
8080
81- /// don't use this function to create the memeoryview if the buffer is exporting
81+ /// don't use this function to create the memoryview if the buffer is exporting
8282 /// via another memoryview, use PyMemoryView::new_view() or PyMemoryView::from_object
8383 /// to reduce the chain
8484 pub fn from_buffer ( buffer : PyBuffer , vm : & VirtualMachine ) -> PyResult < Self > {
@@ -113,7 +113,7 @@ impl PyMemoryView {
113113 Ok ( zelf)
114114 }
115115
116- /// this should be the only way to create a memroyview from another memoryview
116+ /// this should be the only way to create a memoryview from another memoryview
117117 pub fn new_view ( & self ) -> Self {
118118 let zelf = PyMemoryView {
119119 buffer : self . buffer . clone ( ) ,
0 commit comments