Skip to content

Commit ab0d480

Browse files
committed
Fix some format problems in README.md
1 parent 3c97240 commit ab0d480

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ assume `person_obj` to be some protobuf message
4444
```
4545
print person_obj['name'] # print out the person_obj.name
4646
person_obj['name'] = 'David' # set the attribute 'name' to 'David'
47-
person_obj.update({'name': 'David'}) # again set the attribute 'name' to 'David' but in batch mode
48-
print ('name' in person_obj) # print whether the 'name' attribute is set in person_obj
47+
# again set the attribute 'name' to 'David' but in batch mode
48+
person_obj.update({'name': 'David'})
49+
print ('name' in person_obj) # print whether the 'name' attribute is set in person_obj
4950
# the 'in' operator is better than the google implementation HasField function
5051
# in the sense that it won't raise Exception even if the field is not defined
5152
```
@@ -60,8 +61,8 @@ person_obj['phone'] = [{'number': '5678'}] # dict assignment
6061
person_obj['phone'] = [{'number': '4567'}, Person.PhoneNumber(number="1234")] # mixed assignment
6162
```
6263

63-
-However, at present, the implementation for the list assignment feature is ugly, unsafe and inefficient.-
64-
You didn't see anything in the above line.
64+
~~However, at present, the implementation for the list assignment feature is ugly, unsafe and inefficient.~~
65+
*You didn't see anything in the above line.*
6566

6667
#### Text Method
6768

@@ -77,7 +78,7 @@ You didn't see anything in the above line.
7778
```
7879

7980

80-
#### More Examples
81+
#### More Examples
8182

8283
If you're still interested in our project, we suggest you reading our unit-test code in
8384
[tests/](https://github.com/XericZephyr/prototext/tree/master/tests) folder which is intensively

0 commit comments

Comments
 (0)