Skip to content

Commit 57577b6

Browse files
committed
fix doc
1 parent 524a18d commit 57577b6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/types/iterator.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use std::fmt::{Debug, Display, Formatter};
88
///
99
/// In PHP, iterators are represented as zend_object_iterator. This allow user to iterate
1010
/// over object implementing Traversable interface using foreach.
11-
///
12-
/// ```
1311
pub type ZendIterator = zend_object_iterator;
1412

1513
impl ZendIterator {
@@ -28,7 +26,7 @@ impl ZendIterator {
2826
/// Check if the current position of the iterator is valid.
2927
///
3028
/// 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>
3230
pub fn valid(&mut self) -> bool {
3331
if let Some(valid) = unsafe { (*self.funcs).valid } {
3432
unsafe { valid(&mut *self) != 0 }
@@ -40,7 +38,7 @@ impl ZendIterator {
4038
/// Rewind the iterator to the first element.
4139
///
4240
/// 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>
4442
pub fn rewind(&mut self) {
4543
if let Some(rewind) = unsafe { (*self.funcs).rewind } {
4644
unsafe {
@@ -52,7 +50,7 @@ impl ZendIterator {
5250
/// Move the iterator forward to the next element.
5351
///
5452
/// 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>
5654
pub fn move_forward(&mut self) {
5755
if let Some(move_forward) = unsafe { (*self.funcs).move_forward } {
5856
unsafe {

0 commit comments

Comments
 (0)