mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-21 15:04:33 -05:00
Fix doc comment in src/icu.rs (#608)
Rustdoc interprets code snippets as Rust unless told otherwise. Tell it otherwise because this particular snippet is C++.
This commit is contained in:
parent
4ef7ab3fd6
commit
9a8f6443fe
1 changed files with 2 additions and 0 deletions
|
@ -13,11 +13,13 @@ extern "C" {
|
|||
/// address to the start of the data, or (with the appropriate link options) pass in the pointer to
|
||||
/// the data that has been loaded from a dll by the operating system, as shown in this code:
|
||||
///
|
||||
/// ```c++
|
||||
/// extern const char U_IMPORT U_ICUDATA_ENTRY_POINT [];
|
||||
/// // U_ICUDATA_ENTRY_POINT is same as entry point specified to pkgdata tool
|
||||
/// UErrorCode status = U_ZERO_ERROR;
|
||||
///
|
||||
/// udata_setCommonData(&U_ICUDATA_ENTRY_POINT, &status);
|
||||
/// ```
|
||||
///
|
||||
/// It is important that the declaration be as above. The entry point must not be declared as an
|
||||
/// extern void*.
|
||||
|
|
Loading…
Reference in a new issue