Skip to content

Commit 16acb4e

Browse files
committed
Fix documents.
1 parent 7743100 commit 16acb4e

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

phper/src/arrays.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::{
2020
ops::{Deref, DerefMut},
2121
};
2222

23-
/// Key for [Array].
23+
/// Key for [ZArr].
2424
#[derive(Debug, Clone, PartialEq, From)]
2525
pub enum Key<'a> {
2626
Index(u64),
@@ -29,7 +29,7 @@ pub enum Key<'a> {
2929
ZStr(&'a ZStr),
3030
}
3131

32-
/// Insert key for [Array].
32+
/// Insert key for [ZArr].
3333
#[derive(Debug, Clone, PartialEq, From)]
3434
pub enum InsertKey<'a> {
3535
NextIndex,
@@ -337,7 +337,7 @@ pub enum IterKey<'a> {
337337
ZStr(&'a ZStr),
338338
}
339339

340-
/// Iter created by [Array::iter].
340+
/// Iter created by [ZArr::iter].
341341
pub struct Iter<'a> {
342342
index: isize,
343343
array: &'a ZArr,

phper/src/classes.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,6 @@ impl<T: Send> Classifiable for StatefulClass<T> {
161161
}
162162

163163
/// Wrapper of [crate::sys::zend_class_entry].
164-
///
165-
/// # Generic
166-
///
167-
/// 1. Any `zend_class_entry` can be make into `ClassEntry<()>`, alias as
168-
/// [StatelessClassEntry].
169-
///
170-
/// 2. Only the `zend_class_entry` created by
171-
/// [crate::modules::Module::add_class] can be make into `ClassEntry<T>`, where
172-
/// `T` is the type defined by [Classifiable::state_type_id], as the inner state
173-
/// of `ClassEntry<T>` and `Object<T>`.
174164
#[repr(transparent)]
175165
pub struct ClassEntry {
176166
inner: zend_class_entry,

phper/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const ARGUMENT_COUNT_ERROR_CLASS: &str = if PHP_VERSION_ID >= 70100 {
2323
};
2424

2525
/// PHP Throwable, can cause throwing an exception when setting to
26-
/// [crate::values::Val].
26+
/// [crate::values::ZVal].
2727
pub trait Throwable: error::Error {
2828
fn class_entry(&self) -> &ClassEntry;
2929

0 commit comments

Comments
 (0)