You've already forked json-iterator
							
							
				mirror of
				https://github.com/json-iterator/go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	Merge pull request #427 from AllenX2018/fix-typo
fix the error message typo of ReadObjectCB & ReadMapCb function
This commit is contained in:
		| @@ -150,7 +150,7 @@ func (iter *Iterator) ReadObjectCB(callback func(*Iterator, string) bool) bool { | ||||
| 		if c == '}' { | ||||
| 			return iter.decrementDepth() | ||||
| 		} | ||||
| 		iter.ReportError("ReadObjectCB", `expect " after }, but found `+string([]byte{c})) | ||||
| 		iter.ReportError("ReadObjectCB", `expect " after {, but found `+string([]byte{c})) | ||||
| 		iter.decrementDepth() | ||||
| 		return false | ||||
| 	} | ||||
| @@ -206,7 +206,7 @@ func (iter *Iterator) ReadMapCB(callback func(*Iterator, string) bool) bool { | ||||
| 		if c == '}' { | ||||
| 			return iter.decrementDepth() | ||||
| 		} | ||||
| 		iter.ReportError("ReadMapCB", `expect " after }, but found `+string([]byte{c})) | ||||
| 		iter.ReportError("ReadMapCB", `expect " after {, but found `+string([]byte{c})) | ||||
| 		iter.decrementDepth() | ||||
| 		return false | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user