Skip to content

Commit e3edbd5

Browse files
C3papaxcut
andauthored
Small documentation improvements (#408)
doc: add syntax highlighting to std::ptr::NullablePtr example, fix description of type::escape_bytes Co-authored-by: paxcut <53811119+paxcut@users.noreply.github.com>
1 parent b10a37a commit e3edbd5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

includes/std/ptr.pat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ namespace auto std::ptr {
4747
Example:
4848
A struct field called `p_myInfo` which is a nullable 64-bit pointer to an
4949
element of type `MyInfoTy` would be written as:
50-
```
50+
```rust
5151
struct MyStruct {
52-
std::ptr::NullablePtr<MyInfoTy, u64> p_myInfo;
52+
std::ptr::NullablePtr<MyInfoTy, u64> p_myInfo;
5353
}
5454
```
5555
*/

includes/type/magic.pat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace auto type
1111
{
1212

1313
/**
14-
Escapes all bytes in a string to only contain printable characters. All non-printable bytes will be transformed to sequences in the form form \xFF
14+
Escapes all bytes in a string to only contain printable characters. All non-printable bytes will be transformed to sequences in the \xFF form
1515
@param value Byte array to escape
1616
@return Escaped string
1717
*/

0 commit comments

Comments
 (0)