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 <werwolv98@gmail.com>
This commit is contained in:
C3pa
2024-06-22 10:59:36 +02:00
committed by GitHub
parent 2a3de1b705
commit e4c9d86755
2 changed files with 5 additions and 5 deletions

View File

@@ -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) {

View File

@@ -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;
};