Skip to content

Commit b0268c3

Browse files
minor fixes in examples
1 parent 6d10419 commit b0268c3

File tree

1 file changed

+2
-2
lines changed
  • samples/snippets/fsharp/compiler-messages

1 file changed

+2
-2
lines changed

samples/snippets/fsharp/compiler-messages/fs0067.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type Dog() =
55
let dog = Dog()
66

77
if dog :? Dog then
8-
printfn "It always be a dog"
8+
printfn "It's of type: %s" dog.Name
99

1010
(* Redundant Downcast *)
1111
type Cat(name: string) =
@@ -15,4 +15,4 @@ let cat = Cat("Kitten")
1515

1616
let sameCat = cat :?> Cat
1717

18-
printfn "It's still a %s" sameCat.Name
18+
printfn "It still a %s" sameCat.Name

0 commit comments

Comments
 (0)