diff --git a/src/exception-safety.md b/src/exception-safety.md index 935631b..ee69411 100644 --- a/src/exception-safety.md +++ b/src/exception-safety.md @@ -123,7 +123,7 @@ impl<'a, T> Hole<'a, T> { fn removed(&self) -> &T { self.elt.as_ref().unwrap() } - unsafe fn get(&self, index: usize) -> &T { &self.data[index] } + fn get(&self, index: usize) -> &T { &self.data[index] } unsafe fn move_to(&mut self, index: usize) { let index_ptr: *const _ = &self.data[index]; diff --git a/src/intro.md b/src/intro.md index f2f667c..fc4336c 100644 --- a/src/intro.md +++ b/src/intro.md @@ -15,7 +15,7 @@ > > 如果大家对于翻译有更好的建议或者想法,欢迎直接 PR~ > -> 目前翻译基于 commit:ddfa4214487686e91b21aa29afb972c08a8f0d5b,基于时间:2023/9/25 +> 目前翻译基于 commit:1842257814919fa62e81bdecd5e8f95be2839dbb,基于时间:2023/10/17 > > Q:为什么不基于之前已有的中文版进行改进? >