From 34f0728ea2f20db617d292df84e17be88522c1e8 Mon Sep 17 00:00:00 2001 From: Derek Bailey Date: Fri, 10 Jan 2025 12:57:09 -0800 Subject: [PATCH] fix c++ style in embedded content --- docs/source/languages/cpp.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/languages/cpp.md b/docs/source/languages/cpp.md index d12e28ffa41..e44e34bbf1b 100644 --- a/docs/source/languages/cpp.md +++ b/docs/source/languages/cpp.md @@ -651,7 +651,7 @@ NOTE: The examples below are also in the `grpc/samples/greeter` directory. We will illustrate usage with the following schema: -``` title="grpc/samples/greeter/greeter.fbs" +```c++ title="grpc/samples/greeter/greeter.fbs" --8<-- "https://raw.githubusercontent.com/google/flatbuffers/refs/heads/master/grpc/samples/greeter/greeter.fbs" ``` @@ -660,13 +660,13 @@ When we run `flatc`, we pass in the `--grpc` option and generage an additional Example server code looks like this: -``` title="grpc/samples/greeter/server.cpp" +```c++ title="grpc/samples/greeter/server.cpp" --8<-- "https://raw.githubusercontent.com/google/flatbuffers/refs/heads/master/grpc/samples/greeter/server.cpp" ``` Example client code looks like this: -``` title="grpc/samples/greeter/client.cpp" +```c++ title="grpc/samples/greeter/client.cpp" --8<-- "https://raw.githubusercontent.com/google/flatbuffers/refs/heads/master/grpc/samples/greeter/client.cpp" ```