Skip to content

Commit 536b516

Browse files
abc3facebook-github-bot
authored andcommitted
Add syntax highlighting to README code snippets (#10)
Summary: This PR improves the readability of the README by adding syntax highlighting to code snippets. before: <img width="833" alt="Screenshot 2025-03-07 at 13 44 23" src="https://github.com/user-attachments/assets/740a9a3d-54ae-4c44-8db9-55b48cd049f6" /> after: <img width="833" alt="Screenshot 2025-03-07 at 13 43 55" src="https://github.com/user-attachments/assets/d5062d44-6ac7-4718-bc70-c5bb2baea20f" /> Pull Request resolved: #10 Reviewed By: jaher Differential Revision: D71204200 Pulled By: hsun324 fbshipit-source-id: a38751ad3171f000da6d4a4550bcb4436cfee5f8
1 parent 3d2ffd1 commit 536b516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ WARaft is a Raft library in Erlang by WhatsApp. It provides an Erlang implementa
1313

1414
The following code snippet gives a quick glance about how WARaft works. It creates a single-node WARaft cluster and writes and reads a record.
1515

16-
```
16+
```erlang
1717
% Setup the WARaft application and the host application
1818
rr(wa_raft_server).
1919
application:ensure_all_started(wa_raft).
@@ -38,7 +38,7 @@ wa_raft_acceptor:read(raft_acceptor_test_1, {read, test, key}).
3838

3939
A typical output would look like the following:
4040

41-
```
41+
```erlang
4242
1> % Setup the WARaft application and the host application
4343
rr(wa_raft_server).
4444
[raft_application,raft_identifier,raft_identity,raft_log,

0 commit comments

Comments
 (0)