File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -519,15 +519,17 @@ impl ZendHashTable {
519
519
/// # Example
520
520
///
521
521
/// ```no_run
522
- /// use ext_php_rs::types::ZendHashTable;
522
+ /// use ext_php_rs::types::{ ZendHashTable, ArrayKey} ;
523
523
///
524
524
/// let mut ht = ZendHashTable::new();
525
525
///
526
526
/// for (key, val) in ht.iter() {
527
- /// // ^ Index if inserted at an index.
528
- /// // ^ Optional string key, if inserted like a hashtable.
529
- /// // ^ Inserted value.
530
- ///
527
+ /// match &key {
528
+ /// ArrayKey::Long(index) => {
529
+ /// }
530
+ /// ArrayKey::String(key) => {
531
+ /// }
532
+ /// }
531
533
/// dbg!(key, val);
532
534
/// }
533
535
#[ inline]
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ mod object;
13
13
mod string;
14
14
mod zval;
15
15
16
- pub use array:: ZendHashTable ;
16
+ pub use array:: { ArrayKey , ZendHashTable } ;
17
17
pub use callable:: ZendCallable ;
18
18
pub use class_object:: ZendClassObject ;
19
19
pub use iterable:: Iterable ;
You can’t perform that action at this time.
0 commit comments