Skip to content

Commit 8eacb81

Browse files
committed
Change description source example
1 parent d5ce13b commit 8eacb81

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

executable-tutorials.org

+18
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,24 @@ Here's a screenshot from the MvcMovieSaturnTutorial which shows an example of ho
3333

3434
[[file:change-description-example.png]]
3535

36+
Here's the part of the source document from which that is generated:
37+
38+
#+begin_src
39+
$file = '.\src\MvcMovieSaturn\Movies\MoviesModel.fs'
40+
41+
$original_text = @"
42+
let validators = [
43+
fun u -> if isNull u.Id then Some ("Id", "Id shouldn't be empty") else None
44+
]
45+
"@
46+
47+
$replacement_text = @"
48+
let validators = []
49+
"@
50+
51+
Edit $file -Replacing $original_text -With $replacement_text
52+
#+end_src
53+
3654
* Example 2 - ASP.NET Core project
3755

3856
https://github.com/dharmatech/LinkAggregatorTutorial/blob/main/LinkAggregatorTutorial.md

0 commit comments

Comments
 (0)