Skip to content

Commit 381e013

Browse files
committed
fix paste doctest
1 parent d76d692 commit 381e013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tmc-langs-core/src/tmc_core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ impl TmcCore {
284284
/// let course_details = core.get_course_details(600).unwrap();
285285
/// let submission_url = &course_details.exercises[0].return_url;
286286
/// let submission_url = Url::parse(&submission_url).unwrap();
287-
/// let new_submission = core.paste_with_comment(
287+
/// let new_submission = core.paste(
288288
/// submission_url,
289289
/// Path::new("./exercises/python/123"),
290-
/// "my python solution".to_string(),
290+
/// Some("my python solution".to_string()),
291291
/// Language::Eng).unwrap();
292292
/// ```
293293
pub fn paste(

0 commit comments

Comments
 (0)