From 9a8f6443fea318cc198f4b63341041143cae5f3f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 9 Feb 2021 23:12:42 +0100 Subject: [PATCH] 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++. --- src/icu.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/icu.rs b/src/icu.rs index 64ef0fa8..e478e6df 100644 --- a/src/icu.rs +++ b/src/icu.rs @@ -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*.