0
0
Fork 0
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:
Ben Noordhuis 2021-02-09 23:12:42 +01:00 committed by GitHub
parent 4ef7ab3fd6
commit 9a8f6443fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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*.