Skip to content

Commit f42d706

Browse files
committed
Fix incorrect description of strchr()
1 parent bba6f24 commit f42d706

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.0.0beta8 (April 28, 2017)
4+
5+
* `strchr()` was described incorrectly in
6+
[chapter 7](http://viewsourcecode.org/snaptoken/kilo/07.syntaxHighlighting.html#colorful-numbers).
7+
(Thanks Rudi)
8+
39
## 1.0.0beta7 (April 20, 2017)
410

511
* In `editorSelectSyntaxHighlight()`, change the logic for filename pattern

doc/07.syntaxHighlighting.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,9 @@ returns true if it's considered a separator character.
181181

182182
{{is-separator}}
183183

184-
`strchr()` comes from `<string.h>`. It looks to see if any one of the
185-
characters in the first string appear in the second string. If so, it returns a
186-
pointer to the character in the second string that matched. Otherwise, it
187-
returns `NULL`.
184+
`strchr()` comes from `<string.h>`. It looks for the first occurrence of a
185+
character in a string, and returns a pointer to the matching character in the
186+
string. If the string doesn't contain the character, `strchr()` returns `NULL`.
188187

189188
Right now, numbers are highlighted even if they're part of an identifier, such
190189
as the `32` in `int32_t`. To fix that, we'll require that numbers are preceded

leg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
:name: kilo
3-
:version: "1.0.0beta7"
3+
:version: "1.0.0beta8"
44
:title: Build Your Own Text Editor
55
:rouge_theme: github
66
:bold_weight: 500

0 commit comments

Comments
 (0)