Skip to content

Commit 0bc5e6c

Browse files
authored
Update documents. (#127)
1 parent 43c8896 commit 0bc5e6c

File tree

13 files changed

+29
-29
lines changed

13 files changed

+29
-29
lines changed

phper-doc/doc/_02_quick_start/_01_write_your_first_extension/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Full example is <https://github.com/phper-framework/phper/tree/master/examples/h
2626
1. Add the metadata to the `Cargo.toml` to build the `.so` file.
2727

2828
```toml
29-
## Cargo.toml
29+
# Cargo.toml
3030

3131
[lib]
3232
crate-type = ["cdylib"]
@@ -88,12 +88,12 @@ Full example is <https://github.com/phper-framework/phper/tree/master/examples/h
8888
1. Build, if your php isn't installed globally, you should specify the path of `php-config`.
8989

9090
```bash
91-
## Optional, specify if php isn't installed globally,
92-
## this environment is used by `phper-sys`.
93-
##
94-
## export PHP_CONFIG=<Your path of php-config>
91+
# Optional, specify if php isn't installed globally,
92+
# this environment is used by `phper-sys`.
93+
#
94+
# export PHP_CONFIG=<Your path of php-config>
9595

96-
## Build libhello.so.
96+
# Build libhello.so.
9797
cargo build
9898
```
9999

phper-doc/doc/_02_quick_start/_02_write_a_simple_http_client/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Before writing the code, we first prepare the dependency and startup code.
6161
1. Add the metadata to the `Cargo.toml` to build the `.so` file.
6262

6363
```toml
64-
## Cargo.toml
64+
# Cargo.toml
6565

6666
[lib]
6767
crate-type = ["cdylib"]

phper/src/arrays.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
99
// See the Mulan PSL v2 for more details.
1010

11-
//! Apis relate to [crate::sys::zend_array].
11+
//! Apis relate to [zend_array](crate::sys::zend_array).
1212
1313
use crate::{alloc::ToRefOwned, strings::ZStr, sys::*, values::ZVal};
1414
use derive_more::From;
@@ -61,7 +61,7 @@ impl<'a> From<Key<'a>> for InsertKey<'a> {
6161
}
6262
}
6363

64-
/// Wrapper of [crate::sys::zend_array].
64+
/// Wrapper of [zend_array](crate::sys::zend_array).
6565
#[repr(transparent)]
6666
pub struct ZArr {
6767
inner: zend_array,
@@ -359,7 +359,7 @@ impl ToRefOwned for ZArr {
359359
}
360360
}
361361

362-
/// Wrapper of [crate::sys::zend_array].
362+
/// Wrapper of [zend_array](crate::sys::zend_array).
363363
#[repr(transparent)]
364364
pub struct ZArray {
365365
inner: *mut ZArr,

phper/src/classes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
99
// See the Mulan PSL v2 for more details.
1010

11-
//! Apis relate to [crate::sys::zend_class_entry].
11+
//! Apis relate to [zend_class_entry](crate::sys::zend_class_entry).
1212
1313
use crate::{
1414
arrays::ZArr,
@@ -48,7 +48,7 @@ pub fn array_access_class<'a>() -> &'a ClassEntry {
4848
unsafe { ClassEntry::from_ptr(zend_ce_arrayaccess) }
4949
}
5050

51-
/// Wrapper of [crate::sys::zend_class_entry].
51+
/// Wrapper of [zend_class_entry](crate::sys::zend_class_entry).
5252
#[repr(transparent)]
5353
pub struct ClassEntry {
5454
inner: zend_class_entry,

phper/src/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
99
// See the Mulan PSL v2 for more details.
1010

11-
//! Apis relate to [crate::sys::zend_constant].
11+
//! Apis relate to [zend_constant](crate::sys::zend_constant).
1212
1313
use crate::{sys::*, types::Scalar};
1414
use std::ffi::{c_char, c_int};

phper/src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
99
// See the Mulan PSL v2 for more details.
1010

11-
//! Apis relate to [crate::sys::zend_function_entry].
11+
//! Apis relate to [zend_function_entry](crate::sys::zend_function_entry).
1212
//!
1313
//! TODO Add lambda.
1414

phper/src/ini.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
99
// See the Mulan PSL v2 for more details.
1010

11-
//! Apis relate to [crate::sys::zend_ini_entry_def].
11+
//! Apis relate to [zend_ini_entry_def](crate::sys::zend_ini_entry_def).
1212
1313
use crate::{c_str, sys::*};
1414
use std::{

phper/src/modules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
99
// See the Mulan PSL v2 for more details.
1010

11-
//! Apis relate to [crate::sys::zend_module_entry].
11+
//! Apis relate to [zend_module_entry](crate::sys::zend_module_entry).
1212
1313
use crate::{
1414
c_str_ptr,

phper/src/objects.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
99
// See the Mulan PSL v2 for more details.
1010

11-
//! Apis relate to [crate::sys::zend_object].
11+
//! Apis relate to [zend_object](crate::sys::zend_object).
1212
1313
use crate::{
1414
alloc::EBox,
@@ -30,7 +30,7 @@ use std::{
3030
ptr::null_mut,
3131
};
3232

33-
/// Wrapper of [crate::sys::zend_object].
33+
/// Wrapper of [zend_object](crate::sys::zend_object).
3434
#[repr(transparent)]
3535
pub struct ZObj {
3636
inner: zend_object,
@@ -287,7 +287,7 @@ impl Debug for ZObj {
287287
}
288288
}
289289

290-
/// Wrapper of [crate::sys::zend_object].
290+
/// Wrapper of [zend_object](crate::sys::zend_object).
291291
pub struct ZObject {
292292
inner: *mut ZObj,
293293
}

phper/src/references.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
99
// See the Mulan PSL v2 for more details.
1010

11-
//! Apis relate to [crate::sys::zend_resource].
11+
//! Apis relate to [zend_resource](crate::sys::zend_resource).
1212
1313
use crate::{sys::*, values::ZVal};
1414
use std::fmt::{self, Debug};
1515

16-
/// Wrapper of [crate::sys::zend_resource].
16+
/// Wrapper of [zend_resource](crate::sys::zend_resource).
1717
#[repr(transparent)]
1818
pub struct ZRef {
1919
inner: zend_reference,

0 commit comments

Comments
 (0)