Skip to content

Commit

Permalink
Merge pull request #1687 from lamtrinhdev/Enhance_README.md
Browse files Browse the repository at this point in the history
Enhance code block format in README.md
  • Loading branch information
tbkka authored Jul 30, 2024
2 parents b842955 + 5825c42 commit 75b2b0e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,22 @@ protoc compiler and the SwiftProtobuf code generator plugin.

Building the plugin should be simple on any supported Swift platform:

```
```bash
git clone https://github.com/apple/swift-protobuf.git
cd swift-protobuf
```

Pick what released version of SwiftProtobuf you are going to use. You can get
a list of tags with:

```
```bash
git tag -l
```

Once you pick the version you will use, set your local state to match, and
build the protoc plugin:

```
```bash
git checkout tags/[tag_name]
swift build -c release
```
Expand All @@ -143,7 +143,7 @@ to use also use `--static-swift-stdlib` with `swift build`.

If you prefer using [Homebrew](https://brew.sh):

```
```bash
brew install swift-protobuf
```

Expand All @@ -154,7 +154,7 @@ This will install `protoc` compiler and Swift code generator plugin.
To generate Swift output for your .proto files, you run the `protoc` command as
usual, using the `--swift_out=<directory>` option:

```
```bash
protoc --swift_out=. my.proto
```

Expand Down Expand Up @@ -240,7 +240,7 @@ message BookInfo {
```

Then generate Swift code using:
```
```bash
protoc --swift_out=. DataModel.proto
```

Expand Down

0 comments on commit 75b2b0e

Please sign in to comment.