summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAmr Hesham <amr96@programmer.net>2023-03-02 15:43:42 +0200
committerGitHub <noreply@github.com>2023-03-02 14:43:42 +0100
commit12a4d51be7f931cffca4dc9e6ca07ece75e8352a (patch)
tree5c54a325f40f6655f4b963f925fc683136f17cbe /tests
parent899417e2bc518993f23cb8525f4f94a3961ba757 (diff)
downloadpygments-git-12a4d51be7f931cffca4dc9e6ca07ece75e8352a.tar.gz
Fix Carbon example typo in function declaration (#2365)
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/carbon/example.carbon2
-rw-r--r--tests/examplefiles/carbon/example.carbon.output2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/examplefiles/carbon/example.carbon b/tests/examplefiles/carbon/example.carbon
index 9f906023..13b4a1a6 100644
--- a/tests/examplefiles/carbon/example.carbon
+++ b/tests/examplefiles/carbon/example.carbon
@@ -9,7 +9,7 @@ fn Partition[T: !Comparable & Movable](s : Slice(T)) -> i64 {
return i;
}
-fb QuickSort[T: !Comparable & Movable](s : Slice(T)) {
+fn QuickSort[T: !Comparable & Movable](s : Slice(T)) {
if (s.Size() <= 1) {
return;
}
diff --git a/tests/examplefiles/carbon/example.carbon.output b/tests/examplefiles/carbon/example.carbon.output
index 70d0db25..962bf7e4 100644
--- a/tests/examplefiles/carbon/example.carbon.output
+++ b/tests/examplefiles/carbon/example.carbon.output
@@ -111,7 +111,7 @@
'\n' Text.Whitespace
-'fb' Name.Other
+'fn' Keyword.Declaration
' ' Text.Whitespace
'QuickSort' Name.Other
'[' Punctuation