From 877cc86f0e1367cf67bcba809df30ffc9bd8e2a9 Mon Sep 17 00:00:00 2001 From: Chris Mumford Date: Mon, 22 Apr 2019 11:16:39 -0700 Subject: [PATCH] Fixed formatted (bash/c++) sections of README.md. PiperOrigin-RevId: 244695986 --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b9db833..a957a96 100644 --- a/README.md +++ b/README.md @@ -68,9 +68,10 @@ Building CMake is supported and autotools will soon be deprecated. You need CMake 3.4 or above to build: - mkdir build - cd build && cmake ../ && make - +```bash +mkdir build +cd build && cmake ../ && make +``` Usage ===== @@ -86,11 +87,15 @@ your calling file, and link against the compiled library. There are many ways to call Snappy, but the simplest possible is - snappy::Compress(input.data(), input.size(), &output); +```c++ +snappy::Compress(input.data(), input.size(), &output); +``` and similarly - snappy::Uncompress(input.data(), input.size(), &output); +```c++ +snappy::Uncompress(input.data(), input.size(), &output); +``` where "input" and "output" are both instances of std::string.