From efcb15d05b4bbd8c2372097e35ab9206c5e19b94 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+tobealive@users.noreply.github.com> Date: Thu, 13 Jul 2023 00:43:04 +0200 Subject: [PATCH] docs: update deprecated function results (#18850) --- doc/docs.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index edbcfd3f8d7a7f..e81cadda395722 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -4551,9 +4551,9 @@ If a test function has an error return type, any propagated errors will fail the ```v import strconv -fn test_atoi() ? { - assert strconv.atoi('1')? == 1 - assert strconv.atoi('one')? == 1 // test will fail +fn test_atoi() ! { + assert strconv.atoi('1')! == 1 + assert strconv.atoi('one')! == 1 // test will fail } ``` @@ -6738,7 +6738,7 @@ fn sh(cmd string) { rmdir_all('build') or {} // Create build/, never fails as build/ does not exist -mkdir('build')? +mkdir('build')! // Move *.v files to build/ result := execute('mv *.v build/') @@ -6749,7 +6749,7 @@ if result.exit_code != 0 { sh('ls') // Similar to: -// files := ls('.')? +// files := ls('.')! // mut count := 0 // if files.len > 0 { // for file in files {