Fixed formatted (bash/c++) sections of README.md.

PiperOrigin-RevId: 244695986
This commit is contained in:
Chris Mumford
2019-04-22 11:16:39 -07:00
parent 02cf187555
commit 877cc86f0e

View File

@@ -68,9 +68,10 @@ Building
CMake is supported and autotools will soon be deprecated. CMake is supported and autotools will soon be deprecated.
You need CMake 3.4 or above to build: You need CMake 3.4 or above to build:
mkdir build ```bash
cd build && cmake ../ && make mkdir build
cd build && cmake ../ && make
```
Usage 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 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 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. where "input" and "output" are both instances of std::string.