@@ -8,8 +8,6 @@ use std::fmt::{Debug, Display, Formatter};
8
8
///
9
9
/// In PHP, iterators are represented as zend_object_iterator. This allow user to iterate
10
10
/// over object implementing Traversable interface using foreach.
11
- ///
12
- /// ```
13
11
pub type ZendIterator = zend_object_iterator ;
14
12
15
13
impl ZendIterator {
@@ -28,7 +26,7 @@ impl ZendIterator {
28
26
/// Check if the current position of the iterator is valid.
29
27
///
30
28
/// As an example this will call the user defined valid method of the ['\Iterator'] interface.
31
- /// see https://www.php.net/manual/en/iterator.valid.php
29
+ /// see < https://www.php.net/manual/en/iterator.valid.php>
32
30
pub fn valid ( & mut self ) -> bool {
33
31
if let Some ( valid) = unsafe { ( * self . funcs ) . valid } {
34
32
unsafe { valid ( & mut * self ) != 0 }
@@ -40,7 +38,7 @@ impl ZendIterator {
40
38
/// Rewind the iterator to the first element.
41
39
///
42
40
/// As an example this will call the user defined rewind method of the ['\Iterator'] interface.
43
- /// see https://www.php.net/manual/en/iterator.rewind.php
41
+ /// see < https://www.php.net/manual/en/iterator.rewind.php>
44
42
pub fn rewind ( & mut self ) {
45
43
if let Some ( rewind) = unsafe { ( * self . funcs ) . rewind } {
46
44
unsafe {
@@ -52,7 +50,7 @@ impl ZendIterator {
52
50
/// Move the iterator forward to the next element.
53
51
///
54
52
/// As an example this will call the user defined next method of the ['\Iterator'] interface.
55
- /// see https://www.php.net/manual/en/iterator.next.php
53
+ /// see < https://www.php.net/manual/en/iterator.next.php>
56
54
pub fn move_forward ( & mut self ) {
57
55
if let Some ( move_forward) = unsafe { ( * self . funcs ) . move_forward } {
58
56
unsafe {
0 commit comments