From e4c9d867559f6d71d0e61bfa60ead97ed29c06cd Mon Sep 17 00:00:00 2001 From: C3pa <41503714+C3pa@users.noreply.github.com> Date: Sat, 22 Jun 2024 10:59:36 +0200 Subject: [PATCH] includes/std: Add some fixes from the WerWolv/Documentation repo (#262) * Escape backslash in DOSPath docs * Spelling correction for std\sys.pat --------- Co-authored-by: Nik --- includes/std/sys.pat | 4 ++-- includes/type/path.pat | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/std/sys.pat b/includes/std/sys.pat index cc088f7..80bd805 100644 --- a/includes/std/sys.pat +++ b/includes/std/sys.pat @@ -10,7 +10,7 @@ namespace auto std { /** Asserts that a given value is true. If it's not, abort evaluation and print the given message to the console - @param conditoon The condition that is required to be true + @param condition The condition that is required to be true @param message The message to print in case the assertion doesn't hold */ fn assert(bool condition, str message) { @@ -21,7 +21,7 @@ namespace auto std { /** Asserts that a given value is true. If it's not, print the given message to the console as a warning - @param conditoon The condition that is required to be true + @param condition The condition that is required to be true @param message The message to print in case the assertion doesn't hold */ fn assert_warn(bool condition, str message) { diff --git a/includes/type/path.pat b/includes/type/path.pat index d91ebe0..cf9ca7a 100644 --- a/includes/type/path.pat +++ b/includes/type/path.pat @@ -34,12 +34,12 @@ namespace auto type { using UnixPath = Path<"/">; /** - A type representing a DOS path using a '\' backslash as delimeter + A type representing a DOS path using a '\\' backslash as delimeter */ using DOSPath = Path<"\\">; - + namespace impl { - + fn format_path_segment(ref auto segment) { return segment.string; };