Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance code block format in README.md #1687

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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