Skip to content

Commit d92048b

Browse files
committed
fix typos
1 parent 5e884ed commit d92048b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ext/docstrings.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Extracts pairs of docstrings and code blocks from the given AI-generated text.
99
1010
# Returns
1111
12-
- `(pairs, reponse)::Tuple{Vector{Tuple{String,String}}, String}`: A tuple containing a vector of `(docstring, code)` pairs and a string reconstruction with triple-quoted docstrings prepended.
12+
- `(pairs, response)::Tuple{Vector{Tuple{String,String}}, String}`: A tuple containing a vector of `(docstring, code)` pairs and a string reconstruction with triple-quoted docstrings prepended.
1313
1414
# Example
1515
@@ -35,17 +35,17 @@ function extract_docstring_code_pairs(ai_text::String)
3535
push!(pairs, (doc, code))
3636
end
3737

38-
reponse = ""
38+
response = ""
3939
for (doc, code) in pairs
40-
reponse *= "\n\"\"\"\n$doc\n\"\"\"\n$code\n"
40+
response *= "\n\"\"\"\n$doc\n\"\"\"\n$code\n"
4141
end
4242

4343
# Retire tout ce qui est après le dernier bloc ```
44-
idx = findlast("```", reponse)
44+
idx = findlast("```", response)
4545
if idx !== nothing
46-
reponse = reponse[1:(idx[1] - 1)]
46+
response = response[1:(idx[1] - 1)]
4747
end
48-
return pairs, reponse
48+
return pairs, response
4949
end
5050

5151
"""

0 commit comments

Comments
 (0)